|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.dse.services.jdbc.JDBCServicesConnMgrWS30
Implementation of the JDBCServicesConnectionManagementInterface interface to use the pool of connections provided by WebSphere 3.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 | |
JDBCServicesConnMgrWS30()
This constructor creates a JDBCServicesConnMgrWS30 instance. |
Method Summary | |
void |
disconnect(Hashtable connProperties,
java.sql.Connection connection)
Releases the database connection to the pool of connections managed by WebSphere 3.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 3.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 JDBCServicesConnMgrWS30()
Method Detail |
public void disconnect(Hashtable connProperties, java.sql.Connection connection) throws DSESQLException
connProperties
- com.ibm.dse.base.Hashtableconnection
- java.sql.Connectionprotected Hashtable getDataSourcesHashtable()
protected javax.naming.Context getNsInitialContext()
public java.sql.Connection requestConnection(Hashtable connProperties) throws DSESQLException, DSEException
connProperties
- com.ibm.dse.base.Hashtableprotected 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
aConnection
- java.sql.Connection
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |