|
IBM WebSphere Multichannel Bank 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.jdbc.JDBCServicesConnMgrWS50
public class JDBCServicesConnMgrWS50
Implementation of the JDBCServicesConnectionManagementInterface interface to use the pool of connections provided by WebSphere 5.0.
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 | |
---|---|
JDBCServicesConnMgrWS50()
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 5.0. |
protected Hashtable |
getDataSourcesHashtable()
Returns the Hashtable containing the different data sources for connection pooling. |
protected javax.naming.Context |
getNsInitialContext()
Returns the naming service initial context. |
java.sql.Connection |
requestConnection(Hashtable connProperties)
Requests the database connection to the WebSphere 5.0 pool of connections using the connection properties set in the connProperties Hashtable. |
protected void |
setDataSourcesHashtable(Hashtable newDataSourcesHashtable)
Sets the datasource 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 ConnectionPreemptedException that is thrown if the connection is an orphaned connection. |
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 JDBCServicesConnMgrWS50()
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 WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |