|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl
org.apache.ojb.broker.accesslayer.ConnectionFactoryPooledImpl
Connection factory which pools the requested connections for different JdbcConnectionDescriptors using jakarta-commons-pool api.
Constructor Summary | |
ConnectionFactoryPooledImpl()
|
Method Summary | |
org.apache.commons.pool.ObjectPool |
createConnectionPool(JdbcConnectionDescriptor jcd)
Create the pool for pooling the connections of the given connection descriptor. |
java.sql.Connection |
getConnectionFromPool(JdbcConnectionDescriptor jcd)
Implement this method. |
void |
releaseAllResources()
Closes all managed pools. |
void |
returnConnectionToPool(JdbcConnectionDescriptor jcd,
java.sql.Connection con)
Implement this method. |
Methods inherited from class org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl |
lookupConnection, releaseConnection |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConnectionFactoryPooledImpl()
Method Detail |
public void returnConnectionToPool(JdbcConnectionDescriptor jcd, java.sql.Connection con) throws LookupException
ConnectionFactoryAbstractImpl
returnConnectionToPool
in class ConnectionFactoryAbstractImpl
LookupException
public java.sql.Connection getConnectionFromPool(JdbcConnectionDescriptor jcd) throws LookupException
ConnectionFactoryAbstractImpl
getConnectionFromPool
in class ConnectionFactoryAbstractImpl
LookupException
public org.apache.commons.pool.ObjectPool createConnectionPool(JdbcConnectionDescriptor jcd)
ObjectPool
.
public void releaseAllResources()
releaseAllResources
in interface ConnectionFactory
releaseAllResources
in class ConnectionFactoryAbstractImpl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |