|
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.base.DSENotifier
com.ibm.btt.base.Service
com.ibm.btt.services.jdbc.JDBCServicesConnectionManager
@ATTR(value={"poolManager#String#IMPLIED","connMgrClass#String#IMPLIED"}) public class JDBCServicesConnectionManager
Field Summary | |
---|---|
static java.lang.String |
COMPID
Keeps the component identification that will be used by the traces tool. |
protected java.lang.String |
poolManager
Keeps the name of the manager of the pool of connections. |
Fields inherited from class com.ibm.btt.base.Service |
---|
externalizer, name |
Fields inherited from class com.ibm.btt.base.DSENotifier |
---|
handlersList |
Constructor Summary | |
---|---|
JDBCServicesConnectionManager()
This constructor creates a JDBCServicesConnectionManager instance. |
|
JDBCServicesConnectionManager(java.lang.String aName)
This constructor creates a JDBCServicesConnectionManager instance with name aName. |
Method Summary | |
---|---|
void |
disconnect(Hashtable connProperties,
java.sql.Connection aDatabaseConnection)
Calls the connection pooling implementation to either close the database connection or release it to be used by other application. |
java.sql.Connection |
getConnection(Hashtable connProperties)
Returns the database connection. |
protected JDBCServicesConnectionManagementInterface |
getConnMgr()
Returns the connMgr attribute value. |
protected java.lang.String |
getConnMgrClass()
Retuns the connMgrClass attribute value. |
java.lang.String |
getPoolManager()
Returns the poolManager attribute value. |
java.lang.Object |
initializeFrom(Tag aTag)
Called by the externalizer to set JDBCServiceConnectionManager instance attributes to the values set in the services SGML file. |
protected void |
setConnMgr(JDBCServicesConnectionManagementInterface newConnMgr)
Sets the connMgr attribute value to newConnMgr, an instance of a Java object implementing the JDBCServicesConnectionManagerInterface. |
protected void |
setConnMgrClass(java.lang.String newConnMgrClass)
Sets the connMgrClass attribute value to newConnMgrClass, the new name of the class implementing the connection pooling. |
void |
setPoolManager(java.lang.String newPoolManager)
Sets the poolManager attribute value to newPoolManager. |
java.lang.String |
toString()
Returns a visual representation of this service. |
protected boolean |
verifyConnection(java.sql.Connection aDatabaseConnection)
Calls the connection pooling implementation to check for the database connection availability. |
Methods inherited from class com.ibm.btt.base.Service |
---|
externalizer, getExternalizer, getTagName, readExternal, readExternal, readObject, removeExternal, setExternalizer, terminate, toStrings, toTags, writeExternal, writeExternal |
Methods inherited from class com.ibm.btt.base.DSENotifier |
---|
addHandler, getHandlersList, getName, removeHandler, setName, signalEvent, signalEvent, signalEvent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.ibm.btt.base.Externalizable |
---|
getName, setName |
Field Detail |
---|
public static final java.lang.String COMPID
protected java.lang.String poolManager
Constructor Detail |
---|
public JDBCServicesConnectionManager()
public JDBCServicesConnectionManager(java.lang.String aName) throws java.io.IOException
aName
- java.lang.String
java.io.IOException
- if an I/O exception has occurred.Method Detail |
---|
public void disconnect(Hashtable connProperties, java.sql.Connection aDatabaseConnection) throws DSESQLException, DSEException
connProperties
- com.ibm.btt.base.Hashtable - the database connection
propertiesaDatabaseConnection
- java.sql.Connection - the database connection instance
DSESQLException
DSEException
public java.sql.Connection getConnection(Hashtable connProperties) throws DSESQLException, DSEException, DSEInvalidRequestException
aDatabaseURL
- java.lang.StringaUser
- java.lang.StringaPassword
- java.lang.StringsharedConnection
- java.lang.StringusePoolManager
- boolean
DSESQLException
DSEException
DSEInvalidRequestException
protected JDBCServicesConnectionManagementInterface getConnMgr()
protected java.lang.String getConnMgrClass()
public java.lang.String getPoolManager()
public java.lang.Object initializeFrom(Tag aTag) throws java.io.IOException
initializeFrom
in class Service
aTag
- com.ibm.btt.base.Tag
java.io.IOException
- if an I/O Exception has occurredprotected void setConnMgr(JDBCServicesConnectionManagementInterface newConnMgr)
newConnMgr
- com.ibm.btt.services.jdbc.JDBCServicesConnectionManagementInterfaceprotected void setConnMgrClass(java.lang.String newConnMgrClass)
newConnMgrClass
- java.lang.Stringpublic void setPoolManager(java.lang.String newPoolManager)
newPoolManager
- java.lang.Stringpublic java.lang.String toString()
toString
in class Service
protected boolean verifyConnection(java.sql.Connection aDatabaseConnection) throws DSEException
aConnection
- com.ibm.servlet.connmgr.IBMConnection
DSEException
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |