Package com.databend.jdbc.examples
Class DatabendConnectionFactory
java.lang.Object
com.databend.jdbc.examples.DatabendConnectionFactory
- All Implemented Interfaces:
org.apache.commons.pool2.PooledObjectFactory<DatabendConnection>
public class DatabendConnectionFactory
extends Object
implements org.apache.commons.pool2.PooledObjectFactory<DatabendConnection>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivateObject(org.apache.commons.pool2.PooledObject<DatabendConnection> p) voiddestroyObject(org.apache.commons.pool2.PooledObject<DatabendConnection> p) org.apache.commons.pool2.PooledObject<DatabendConnection>voidpassivateObject(org.apache.commons.pool2.PooledObject<DatabendConnection> p) booleanvalidateObject(org.apache.commons.pool2.PooledObject<DatabendConnection> p) 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.PooledObjectFactory
destroyObject
-
Constructor Details
-
DatabendConnectionFactory
-
-
Method Details
-
makeObject
- Specified by:
makeObjectin interfaceorg.apache.commons.pool2.PooledObjectFactory<DatabendConnection>- Throws:
Exception
-
destroyObject
public void destroyObject(org.apache.commons.pool2.PooledObject<DatabendConnection> p) throws Exception - Specified by:
destroyObjectin interfaceorg.apache.commons.pool2.PooledObjectFactory<DatabendConnection>- Throws:
Exception
-
validateObject
- Specified by:
validateObjectin interfaceorg.apache.commons.pool2.PooledObjectFactory<DatabendConnection>
-
activateObject
public void activateObject(org.apache.commons.pool2.PooledObject<DatabendConnection> p) throws Exception - Specified by:
activateObjectin interfaceorg.apache.commons.pool2.PooledObjectFactory<DatabendConnection>- Throws:
Exception
-
passivateObject
public void passivateObject(org.apache.commons.pool2.PooledObject<DatabendConnection> p) throws Exception - Specified by:
passivateObjectin interfaceorg.apache.commons.pool2.PooledObjectFactory<DatabendConnection>- Throws:
Exception
-