org.nuxeo.runtime.datasource
Class PatchedPoolableManagedConnectionFactory
java.lang.Object
org.apache.commons.dbcp.PoolableConnectionFactory
org.apache.commons.dbcp.managed.PoolableManagedConnectionFactory
org.nuxeo.runtime.datasource.PatchedPoolableManagedConnectionFactory
- All Implemented Interfaces:
- org.apache.commons.pool.PoolableObjectFactory
public class PatchedPoolableManagedConnectionFactory
- extends org.apache.commons.dbcp.managed.PoolableManagedConnectionFactory
Patched to use PatchedPoolableManagedConnection
Constructor Summary |
PatchedPoolableManagedConnectionFactory(org.apache.commons.dbcp.managed.XAConnectionFactory connFactory,
org.apache.commons.pool.ObjectPool pool,
org.apache.commons.pool.KeyedObjectPoolFactory stmtPoolFactory,
String validationQuery,
int validationQueryTimeout,
Collection<?> connectionInitSqls,
Boolean defaultReadOnly,
boolean defaultAutoCommit,
int defaultTransactionIsolation,
String defaultCatalog,
org.apache.commons.dbcp.AbandonedConfig config)
|
Methods inherited from class org.apache.commons.dbcp.PoolableConnectionFactory |
activateObject, destroyObject, getPool, passivateObject, setConnectionFactory, setConnectionInitSql, setDefaultAutoCommit, setDefaultCatalog, setDefaultReadOnly, setDefaultTransactionIsolation, setPool, setStatementPoolFactory, setValidationQuery, setValidationQueryTimeout, validateConnection, validateObject |
PatchedPoolableManagedConnectionFactory
public PatchedPoolableManagedConnectionFactory(org.apache.commons.dbcp.managed.XAConnectionFactory connFactory,
org.apache.commons.pool.ObjectPool pool,
org.apache.commons.pool.KeyedObjectPoolFactory stmtPoolFactory,
String validationQuery,
int validationQueryTimeout,
Collection<?> connectionInitSqls,
Boolean defaultReadOnly,
boolean defaultAutoCommit,
int defaultTransactionIsolation,
String defaultCatalog,
org.apache.commons.dbcp.AbandonedConfig config)
makeObject
public Object makeObject()
throws Exception
- Specified by:
makeObject
in interface org.apache.commons.pool.PoolableObjectFactory
- Overrides:
makeObject
in class org.apache.commons.dbcp.managed.PoolableManagedConnectionFactory
- Throws:
Exception
Copyright © 2011 Nuxeo SAS. All Rights Reserved.