Package com.ocient.jdbc
Class XGConnection.XGConnectionFactory
java.lang.Object
com.ocient.jdbc.XGConnection.XGConnectionFactory
- All Implemented Interfaces:
org.apache.commons.pool2.KeyedPooledObjectFactory<XGConnectionInfo,XGConnection>
- Enclosing class:
- XGConnection
public static class XGConnection.XGConnectionFactory
extends Object
implements org.apache.commons.pool2.KeyedPooledObjectFactory<XGConnectionInfo,XGConnection>
Handles the entire XGConnection lifecycle.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivateObject(XGConnectionInfo info, org.apache.commons.pool2.PooledObject<XGConnection> pooledObject) voiddestroyObject(XGConnectionInfo info, org.apache.commons.pool2.PooledObject<XGConnection> pooledObject) org.apache.commons.pool2.PooledObject<XGConnection>makeObject(XGConnectionInfo info) voidpassivateObject(XGConnectionInfo info, org.apache.commons.pool2.PooledObject<XGConnection> pooledObject) booleanvalidateObject(XGConnectionInfo info, org.apache.commons.pool2.PooledObject<XGConnection> pooledObject) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.commons.pool2.KeyedPooledObjectFactory
destroyObject
-
Constructor Details
-
XGConnectionFactory
-
-
Method Details
-
activateObject
public void activateObject(XGConnectionInfo info, org.apache.commons.pool2.PooledObject<XGConnection> pooledObject) throws SQLException - Specified by:
activateObjectin interfaceorg.apache.commons.pool2.KeyedPooledObjectFactory<XGConnectionInfo,XGConnection> - Throws:
SQLException
-
destroyObject
public void destroyObject(XGConnectionInfo info, org.apache.commons.pool2.PooledObject<XGConnection> pooledObject) - Specified by:
destroyObjectin interfaceorg.apache.commons.pool2.KeyedPooledObjectFactory<XGConnectionInfo,XGConnection>
-
makeObject
- Specified by:
makeObjectin interfaceorg.apache.commons.pool2.KeyedPooledObjectFactory<XGConnectionInfo,XGConnection>
-
passivateObject
public void passivateObject(XGConnectionInfo info, org.apache.commons.pool2.PooledObject<XGConnection> pooledObject) - Specified by:
passivateObjectin interfaceorg.apache.commons.pool2.KeyedPooledObjectFactory<XGConnectionInfo,XGConnection>
-
validateObject
public boolean validateObject(XGConnectionInfo info, org.apache.commons.pool2.PooledObject<XGConnection> pooledObject) - Specified by:
validateObjectin interfaceorg.apache.commons.pool2.KeyedPooledObjectFactory<XGConnectionInfo,XGConnection>
-