Package com.databend.jdbc.examples
Class DatabendConnectionFactory
- java.lang.Object
-
- com.databend.jdbc.examples.DatabendConnectionFactory
-
- All Implemented Interfaces:
org.apache.commons.pool2.PooledObjectFactory<Connection>
public class DatabendConnectionFactory extends Object implements org.apache.commons.pool2.PooledObjectFactory<Connection>
-
-
Constructor Summary
Constructors Constructor Description DatabendConnectionFactory(String url, Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivateObject(org.apache.commons.pool2.PooledObject<Connection> p)voiddestroyObject(org.apache.commons.pool2.PooledObject<Connection> p)org.apache.commons.pool2.PooledObject<Connection>makeObject()voidpassivateObject(org.apache.commons.pool2.PooledObject<Connection> p)booleanvalidateObject(org.apache.commons.pool2.PooledObject<Connection> p)
-
-
-
Constructor Detail
-
DatabendConnectionFactory
public DatabendConnectionFactory(String url, Properties properties)
-
-
Method Detail
-
makeObject
public org.apache.commons.pool2.PooledObject<Connection> makeObject() throws Exception
- Specified by:
makeObjectin interfaceorg.apache.commons.pool2.PooledObjectFactory<Connection>- Throws:
Exception
-
destroyObject
public void destroyObject(org.apache.commons.pool2.PooledObject<Connection> p) throws Exception
- Specified by:
destroyObjectin interfaceorg.apache.commons.pool2.PooledObjectFactory<Connection>- Throws:
Exception
-
validateObject
public boolean validateObject(org.apache.commons.pool2.PooledObject<Connection> p)
- Specified by:
validateObjectin interfaceorg.apache.commons.pool2.PooledObjectFactory<Connection>
-
activateObject
public void activateObject(org.apache.commons.pool2.PooledObject<Connection> p) throws Exception
- Specified by:
activateObjectin interfaceorg.apache.commons.pool2.PooledObjectFactory<Connection>- Throws:
Exception
-
passivateObject
public void passivateObject(org.apache.commons.pool2.PooledObject<Connection> p) throws Exception
- Specified by:
passivateObjectin interfaceorg.apache.commons.pool2.PooledObjectFactory<Connection>- Throws:
Exception
-
-