@Beta public class ConnectionFactory extends org.apache.commons.pool.BasePoolableObjectFactory<ConnectionImpl>
| Constructor and Description |
|---|
ConnectionFactory(DataSourceImpl dataSource) |
| Modifier and Type | Method and Description |
|---|---|
void |
activateObject(ConnectionImpl obj) |
void |
destroyObject(ConnectionImpl obj) |
ConnectionImpl |
makeObject() |
void |
passivateObject(ConnectionImpl obj) |
boolean |
validateObject(ConnectionImpl obj) |
public ConnectionFactory(DataSourceImpl dataSource)
dataSource - the datasourcepublic void activateObject(ConnectionImpl obj) throws Exception
activateObject in interface org.apache.commons.pool.PoolableObjectFactory<ConnectionImpl>activateObject in class org.apache.commons.pool.BasePoolableObjectFactory<ConnectionImpl>Exceptionpublic void destroyObject(ConnectionImpl obj) throws Exception
destroyObject in interface org.apache.commons.pool.PoolableObjectFactory<ConnectionImpl>destroyObject in class org.apache.commons.pool.BasePoolableObjectFactory<ConnectionImpl>Exceptionpublic ConnectionImpl makeObject() throws SQLException
makeObject in interface org.apache.commons.pool.PoolableObjectFactory<ConnectionImpl>makeObject in class org.apache.commons.pool.BasePoolableObjectFactory<ConnectionImpl>SQLExceptionpublic void passivateObject(ConnectionImpl obj) throws Exception
passivateObject in interface org.apache.commons.pool.PoolableObjectFactory<ConnectionImpl>passivateObject in class org.apache.commons.pool.BasePoolableObjectFactory<ConnectionImpl>Exceptionpublic boolean validateObject(ConnectionImpl obj)
validateObject in interface org.apache.commons.pool.PoolableObjectFactory<ConnectionImpl>validateObject in class org.apache.commons.pool.BasePoolableObjectFactory<ConnectionImpl>Copyright © 2012 Batoo Software & Consultancy. All Rights Reserved.