DBAbstract API Documentation

ro.raducora.connection.client
Interface AdapterBase

All Superinterfaces:
java.lang.Cloneable
All Known Implementing Classes:
ClientDBAdapter, ClientTCPAdapter, ClientTCPDAdapter

public interface AdapterBase
extends java.lang.Cloneable

Author:
Radu Coravu
A base for all constructed Adapters

Method Summary
 java.lang.Object clone()
          Clone the adapter to avoid constructing it each time
 void connect(ConnectInfo info)
          Connects the adapter to destination source
 void disconnect()
          Disconnect the adapter from remote/local source
 java.lang.Object getConnectionStatus()
          Gets the connection status returned by the connect method
 boolean isAbstractConnection()
          Returns true if the connection is abstract(not to a real database) false if the connection is made to a real database
 boolean isConnected()
           
 java.lang.Object queryObject(java.lang.Object sent)
          Send Object and get received response object all in one step
 void reloadProperties()
          Reloads the properties from the properties sources if any if not possible properties,do nothing :) called when adapter config file changes to reload changes without the need of recreating the adapter
 

Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clone the adapter to avoid constructing it each time

java.lang.CloneNotSupportedException

isConnected

public boolean isConnected()
Returns:
true if connected false otherwise

connect

public void connect(ConnectInfo info)
             throws java.lang.Exception
Connects the adapter to destination source

Parameters:
info - connection info
Throws:
java.lang.Exception

getConnectionStatus

public java.lang.Object getConnectionStatus()
Gets the connection status returned by the connect method

Returns:
the connection status

disconnect

public void disconnect()
                throws java.lang.Exception
Disconnect the adapter from remote/local source

java.lang.Exception

queryObject

public java.lang.Object queryObject(java.lang.Object sent)
                             throws java.lang.Exception
Send Object and get received response object all in one step

java.lang.Exception

reloadProperties

public void reloadProperties()
                      throws java.lang.Exception
Reloads the properties from the properties sources if any if not possible properties,do nothing :) called when adapter config file changes to reload changes without the need of recreating the adapter

Throws:
java.lang.Exception

isAbstractConnection

public boolean isAbstractConnection()
Returns true if the connection is abstract(not to a real database) false if the connection is made to a real database


DBAbstract API Documentation

© Copyright Radu Coravu 2002 - 2004.