|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.services.jdbcservicesinfra.JDBCServicesConnMgrWS40z
Implementation of the JDBCServicesConnectionManagementInterface interface to use the pool of connections provided by WebSphere 4.0 in an OS/390 environment.
Field Summary | |
---|---|
protected Hashtable |
dataSourcesHashtable
Keeps a hashtable containing the different data sources that have been obtained from the naming service. |
protected javax.naming.Context |
nsInitialContext
Keeps the naming service initial context where the connection pooling data source is defined. |
Constructor Summary | |
---|---|
JDBCServicesConnMgrWS40z()
This constructor creates a JDBCServicesConnMgrWS40 instance. |
Method Summary | |
---|---|
void |
disconnect(Hashtable connProperties,
java.sql.Connection connection)
Releases the database connection to the pool of connections managed by WebSphere 4.0. |
protected Hashtable |
getDataSourcesHashtable()
Returns the hashtable containg the different connection pooling data sources. |
protected javax.naming.Context |
getNsInitialContext()
Returns the naming service initial context. |
java.sql.Connection |
requestConnection(Hashtable connProperties)
Requests the database connection to the WebSphere 4.0 pool of connections with the connection properties set in the connProperties hashtable. |
protected void |
setDataSourcesHashtable(Hashtable newDataSourcesHashtable)
Sets the data source hashtable to a new value. |
protected void |
setNsInitialContext(javax.naming.Context newNsInitialContext)
Sets the nsInitialContext attribute to the naming service context newNsInitialContext. |
boolean |
verifyConnection(java.sql.Connection aConnection)
Checks for the availability of the database connection by catching the exception that will be thrown if the connection pooling has considered it as an orphan connection (ConnectionPreemptedException exception). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected javax.naming.Context nsInitialContext
protected Hashtable dataSourcesHashtable
Constructor Detail |
public JDBCServicesConnMgrWS40z()
Method Detail |
public void disconnect(Hashtable connProperties, java.sql.Connection connection) throws DSESQLException
disconnect
in interface JDBCServicesConnectionManagementInterface
connProperties
- com.ibm.dse.base.Hashtableconnection
- java.sql.Connection
DSESQLException
- if an SQLException is caughtprotected Hashtable getDataSourcesHashtable()
protected javax.naming.Context getNsInitialContext()
public java.sql.Connection requestConnection(Hashtable connProperties) throws DSESQLException, DSEException
requestConnection
in interface JDBCServicesConnectionManagementInterface
connProperties
- com.ibm.dse.base.Hashtable
DSESQLException
- if an SQLException is caught
DSEException
- if an exception is thrown when calling the pool of connections managerprotected void setDataSourcesHashtable(Hashtable newDataSourcesHashtable)
newDataSourcesHashtable
- com.ibm.dse.base.Hashtableprotected void setNsInitialContext(javax.naming.Context newNsInitialContext)
newNsInitialContext
- javax.naming.Contextpublic boolean verifyConnection(java.sql.Connection aConnection) throws DSESQLException
verifyConnection
in interface JDBCServicesConnectionManagementInterface
aConnection
- java.sql.Connection
DSESQLException
- if an SQLException is caught
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |