DBAbstract API Documentation

ro.raducora.connection.client.db
Class ClientDBAdapter

java.lang.Object
  |
  +--ro.raducora.connection.client.db.ClientDBAdapter
All Implemented Interfaces:
AdapterBase, java.lang.Cloneable

public class ClientDBAdapter
extends java.lang.Object
implements AdapterBase

Author:
Radu Coravu
An adapter which connects to a database using JDBC

Constructor Summary
ClientDBAdapter(ClientDBProps props)
          Load Properties
 
Method Summary
 java.lang.Object clone()
          Is Cloneable
 void connect(ConnectInfo info)
          Connect to database
 void disconnect()
          Disconnect
 java.lang.Object getConnectionStatus()
          Gets the connection status returned by the connect method
 boolean isAbstractConnection()
          Return false;
 boolean isConnected()
          Returns true if connected
 java.lang.Object queryObject(java.lang.Object sent)
          Sends a query and returns the resulting Object(ResultSet or Integer)
 void reloadProperties()
          Reload ClientDBProps properties
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientDBAdapter

public ClientDBAdapter(ClientDBProps props)
Load Properties

Parameters:
props - Client DB properties
Method Detail

queryObject

public java.lang.Object queryObject(java.lang.Object sent)
                             throws java.sql.SQLException
Sends a query and returns the resulting Object(ResultSet or Integer)

Specified by:
queryObject in interface AdapterBase
java.sql.SQLException
See Also:
AdapterBase.queryObject(java.lang.Object)

isConnected

public boolean isConnected()
Returns true if connected

Specified by:
isConnected in interface AdapterBase
Returns:
true if connected

connect

public void connect(ConnectInfo info)
             throws java.lang.Exception
Connect to database

Specified by:
connect in interface AdapterBase
Parameters:
info - the connection info
Throws:
java.lang.Exception

disconnect

public void disconnect()
                throws java.sql.SQLException
Disconnect

Specified by:
disconnect in interface AdapterBase
java.sql.SQLException

reloadProperties

public void reloadProperties()
                      throws java.lang.Exception
Reload ClientDBProps properties

Specified by:
reloadProperties in interface AdapterBase
Throws:
java.lang.Exception

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Is Cloneable

Specified by:
clone in interface AdapterBase
Overrides:
clone in class java.lang.Object
java.lang.CloneNotSupportedException

isAbstractConnection

public boolean isAbstractConnection()
Return false;

Specified by:
isAbstractConnection in interface AdapterBase

getConnectionStatus

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

Specified by:
getConnectionStatus in interface AdapterBase
Returns:
the connection status

DBAbstract API Documentation

© Copyright Radu Coravu 2002 - 2004.