|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl
Abstract base class to simplify implementation of ConnectionFactory
's.
Constructor Summary | |
ConnectionFactoryAbstractImpl()
|
Method Summary | |
abstract java.sql.Connection |
getConnectionFromPool(JdbcConnectionDescriptor jcd)
Implement this method. |
java.sql.Connection |
lookupConnection(JdbcConnectionDescriptor jcd)
Lookup a connection from the connection factory implementation. |
void |
releaseAllResources()
Override this method to do cleanup in your implementation. |
void |
releaseConnection(JdbcConnectionDescriptor jcd,
java.sql.Connection con)
Release connection - CAUTION: Release every connection after use to avoid abandoned connections. |
abstract void |
returnConnectionToPool(JdbcConnectionDescriptor jcd,
java.sql.Connection con)
Implement this method. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConnectionFactoryAbstractImpl()
Method Detail |
public abstract java.sql.Connection getConnectionFromPool(JdbcConnectionDescriptor jcd) throws LookupException
LookupException
public abstract void returnConnectionToPool(JdbcConnectionDescriptor jcd, java.sql.Connection con) throws LookupException
LookupException
public void releaseConnection(JdbcConnectionDescriptor jcd, java.sql.Connection con)
ConnectionFactory
releaseConnection
in interface ConnectionFactory
public java.sql.Connection lookupConnection(JdbcConnectionDescriptor jcd) throws LookupException
ConnectionFactory
lookupConnection
in interface ConnectionFactory
LookupException
public void releaseAllResources()
releaseAllResources
in interface ConnectionFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |