|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bankframe.ei.txnhandler.connector.jdbcconnector.JDBCConnectionPool
This class is a Connection Pool for the JDBC Connector. It stores and manages a series of physical (EManaged) connections to the offline database.
Constructor Summary | |
JDBCConnectionPool(java.lang.String s,
int i,
int j)
JDBCConnectionPool constructor |
Method Summary | |
void |
addConnection(EManagedConnection emanagedconnection)
This method adds a connection to the pool of available connections. |
void |
freeConnection(EManagedConnection emanagedconnection)
This method frees (makes available for use) a connection in the pool that was currently in use. |
EManagedConnection |
getConnection(EManagedConnectionFactory emanagedconnectionfactory,
java.lang.String s)
This method gets a managed connection from the pool. |
java.util.Set |
getFreeConnections()
This method returns the Set of free connections available in the pool. |
java.lang.String |
getName()
This method gets the name of this pool. |
void |
release()
This method releases all existing free connections in the Connection Pool. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JDBCConnectionPool(java.lang.String s, int i, int j)
Method Detail |
public void addConnection(EManagedConnection emanagedconnection)
emanagedconnection
- The connection to add to the pool.public void freeConnection(EManagedConnection emanagedconnection)
public EManagedConnection getConnection(EManagedConnectionFactory emanagedconnectionfactory, java.lang.String s) throws java.sql.SQLException
emanagedconnectionfactory
- The EManagedConnectionFactory for creation of a new connection if necessary.
java.sql.SQLException
public java.util.Set getFreeConnections()
public java.lang.String getName()
public void release()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |