|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.cafesoft.core.jdbc.StandardPoolableConnectionFactory
Standard implementation of the PoolableConnectionFactory
PoolableConnectionFactory| Method Summary | |
void |
activate(Connection conn)
Activate the Connection |
Connection |
create(ConnectionConfig config)
Create a new Connection |
void |
destroy(Connection conn)
Destroy the Connection Object |
static PoolableConnectionFactory |
getInstance()
Static accessor method |
void |
passivate(Connection conn)
Passivate the Connection |
void |
setConnectionPool(ConnectionPool connPool)
Set the ConnectionPool this Factory belongs to |
boolean |
setDebug(boolean enable)
Enable or disable debugging. |
void |
setLogger(Logger logger)
Sets the logger. |
boolean |
validate(Connection conn)
Validate the Connection object |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static final PoolableConnectionFactory getInstance()
public void setLogger(Logger logger)
setLogger in interface LoggerClientlogger - logs messagespublic boolean setDebug(boolean enable)
setDebug in interface Debuggableenable - if true, enable debugging, else disable debugging.
public void setConnectionPool(ConnectionPool connPool)
connPool - the ConnectionPool this factory creates Connections for
public Connection create(ConnectionConfig config)
throws SQLException
create in interface PoolableConnectionFactoryconfig - the Configuration object for this Connection
SQLException - thrown if error occurs creating a Connection
public void destroy(Connection conn)
throws SQLException
destroy in interface PoolableConnectionFactoryconn - the Connection to destroy
SQLException - thrown if error occurs destroying Connectionpublic void activate(Connection conn)
activate in interface PoolableConnectionFactoryconn - the Connection to activate
public void passivate(Connection conn)
throws SQLException
passivate in interface PoolableConnectionFactoryconn - the Connection object to Passivate
SQLException - thrown if error occurs passivating the Connectionpublic boolean validate(Connection conn)
validate in interface PoolableConnectionFactoryconn - the Connection object to validate
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||