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 Constructor Description XGConnectionFactory() -
Method Summary
Modifier and Type Method Description voidactivateObject(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)
-
Constructor Details
-
XGConnectionFactory
public XGConnectionFactory()
-
-
Method Details
-
activateObject
public void activateObject(XGConnectionInfo info, org.apache.commons.pool2.PooledObject<XGConnection> pooledObject) throws Exception- Specified by:
activateObjectin interfaceorg.apache.commons.pool2.KeyedPooledObjectFactory<XGConnectionInfo,XGConnection>- Throws:
Exception
-
destroyObject
public void destroyObject(XGConnectionInfo info, org.apache.commons.pool2.PooledObject<XGConnection> pooledObject) throws Exception- Specified by:
destroyObjectin interfaceorg.apache.commons.pool2.KeyedPooledObjectFactory<XGConnectionInfo,XGConnection>- Throws:
Exception
-
makeObject
public org.apache.commons.pool2.PooledObject<XGConnection> makeObject(XGConnectionInfo info) throws Exception- Specified by:
makeObjectin interfaceorg.apache.commons.pool2.KeyedPooledObjectFactory<XGConnectionInfo,XGConnection>- Throws:
Exception
-
passivateObject
public void passivateObject(XGConnectionInfo info, org.apache.commons.pool2.PooledObject<XGConnection> pooledObject) throws Exception- Specified by:
passivateObjectin interfaceorg.apache.commons.pool2.KeyedPooledObjectFactory<XGConnectionInfo,XGConnection>- Throws:
Exception
-
validateObject
public boolean validateObject(XGConnectionInfo info, org.apache.commons.pool2.PooledObject<XGConnection> pooledObject)- Specified by:
validateObjectin interfaceorg.apache.commons.pool2.KeyedPooledObjectFactory<XGConnectionInfo,XGConnection>
-