com.ibm.dse.services.jdbc
Interface JDBCServicesConnectionManagementInterface

All Known Implementing Classes:
JDBCServicesConnMgrWS20, JDBCServicesConnMgrWS30, JDBCServicesConnMgrWS35

public interface JDBCServicesConnectionManagementInterface

The JDBCServicesConnectionManagementInterface interface provides the public abstract methods that must implement those classes that can be used as database connection providers.


Method Summary
 void disconnect(Hashtable connProperties, java.sql.Connection connection)
          Closes the database connection or releases it to be used by other application.
 java.sql.Connection requestConnection(Hashtable connProperties)
          Returns a database connection, a java.sql.Connection instance, if there is one of them available in the pool of connections.
 boolean verifyConnection(java.sql.Connection aConnection)
          Returns true if the database connection is ready to be used and false if the database connection has been closed or it has been considered as an orphan connection by the connection pooling implementation.
 

Method Detail

disconnect

public void disconnect(Hashtable connProperties,
                       java.sql.Connection connection)
                throws DSESQLException,
                       DSEException
Closes the database connection or releases it to be used by other application.
Parameters:
connProperties - com.ibm.dse.base.Hashtable
connection - java.sql.Connection

requestConnection

public java.sql.Connection requestConnection(Hashtable connProperties)
                                      throws DSESQLException,
                                             DSEException
Returns a database connection, a java.sql.Connection instance, if there is one of them available in the pool of connections.
Parameters:
connProperties - com.ibm.dse.base.Hashtable
Returns:
java.sql.Connection

verifyConnection

public boolean verifyConnection(java.sql.Connection aConnection)
                         throws DSESQLException,
                                DSEException
Returns true if the database connection is ready to be used and false if the database connection has been closed or it has been considered as an orphan connection by the connection pooling implementation.
Parameters:
aConnection - java.sql.Connection