|
Enterprise Information Portal APIs |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.mm.sdk.server.DKPoolManagerJDBC
DKPoolManagerJDBC: A DKPoolManagerJDBC object will manage multiple database(url) Connection pools.
Fields inherited from interface com.ibm.mm.sdk.common.DKConstant |
For details, see the class or interface |
Fields inherited from interface com.ibm.mm.sdk.common.DKMessageId |
For details, see the class or interface |
Method Summary | |
void |
destroy()
Destroy this pool object including all connections in both free pool and used pool |
DKHandle |
getConnection(java.lang.String dsName,
java.lang.String userId,
java.lang.String passwd)
Gets a connection from the pool manager. |
static DKPoolManagerJDBC |
getInstance()
Returns the single instance |
void |
initConnections(java.lang.String dsName,
java.lang.String userId,
java.lang.String passwd,
int initSize)
Initialize number of connections and store them in the pool |
java.lang.String |
poolType()
Gets the JavaPool type, this is a properties in cmbpool.ini For example: DKPoolWAS or DKPoolJDBC or ""; "" means no pool |
DKPropertyPoolJDBC |
propertyObject()
Gets the property object of the pool manager. |
void |
returnConnection(DKHandle handle,
java.lang.String dsName)
Returns a connection to the pool |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static DKPoolManagerJDBC getInstance()
public DKHandle getConnection(java.lang.String dsName, java.lang.String userId, java.lang.String passwd) throws DKException, java.lang.Exception
dsName
- the database name for connectionuserId
- the user name used to logon the databasepasswd
- the password used to logon the databaseto obtain the true Connection object call like: Connection con = (Connection)aDKHandle.handle();
public void returnConnection(DKHandle handle, java.lang.String dsName) throws DKException, java.lang.Exception
dsName
- the database name for connectionhandle
- a DKHandle that contains the Connection objectpublic void initConnections(java.lang.String dsName, java.lang.String userId, java.lang.String passwd, int initSize) throws DKException, java.lang.Exception
dsName
- the database name for connectionuserId
- the user name used to logon the databasepasswd
- the password used to logon the databaseinitSize
- the number of connection to be createdpublic void destroy() throws DKException, java.lang.Exception
public java.lang.String poolType()
public DKPropertyPoolJDBC propertyObject()
|
EIP Java APIs | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |