| java.lang.Object org.apache.commons.dbcp.PoolableConnectionFactory
PoolableConnectionFactory | public class PoolableConnectionFactory implements PoolableObjectFactory(Code) | | A
PoolableObjectFactory that creates
PoolableConnection s.
author: Rodney Waldhoff author: Glenn L. Nielsen author: James House author: Dirk Verbeeck version: $Revision: 479187 $ $Date: 2006-11-25 13:13:45 -0700 (Sat, 25 Nov 2006) $ |
Constructor Summary | |
public | PoolableConnectionFactory(ConnectionFactory connFactory, ObjectPool pool, KeyedObjectPoolFactory stmtPoolFactory, String validationQuery, boolean defaultReadOnly, boolean defaultAutoCommit) Create a new PoolableConnectionFactory.
Parameters: connFactory - the ConnectionFactory from which to obtain base Connections Parameters: pool - the ObjectPool in which to pool those Connections Parameters: stmtPoolFactory - the KeyedObjectPoolFactory to use to create KeyedObjectPools for pooling java.sql.PreparedStatements, or null to disable java.sql.PreparedStatement pooling Parameters: validationQuery - a query to use to PoolableConnectionFactory.validateObject validate Connections. | public | PoolableConnectionFactory(ConnectionFactory connFactory, ObjectPool pool, KeyedObjectPoolFactory stmtPoolFactory, String validationQuery, boolean defaultReadOnly, boolean defaultAutoCommit, int defaultTransactionIsolation) Create a new PoolableConnectionFactory.
Parameters: connFactory - the ConnectionFactory from which to obtain base Connections Parameters: pool - the ObjectPool in which to pool those Connections Parameters: stmtPoolFactory - the KeyedObjectPoolFactory to use to create KeyedObjectPools for pooling java.sql.PreparedStatements, or null to disable java.sql.PreparedStatement pooling Parameters: validationQuery - a query to use to PoolableConnectionFactory.validateObject validate Connections. | public | PoolableConnectionFactory(ConnectionFactory connFactory, ObjectPool pool, KeyedObjectPoolFactory stmtPoolFactory, String validationQuery, boolean defaultReadOnly, boolean defaultAutoCommit, AbandonedConfig config) Create a new PoolableConnectionFactory.
Parameters: connFactory - the ConnectionFactory from which to obtain base Connections Parameters: pool - the ObjectPool in which to pool those Connections Parameters: stmtPoolFactory - the KeyedObjectPoolFactory to use to create KeyedObjectPools for pooling java.sql.PreparedStatements, or null to disable java.sql.PreparedStatement pooling Parameters: validationQuery - a query to use to PoolableConnectionFactory.validateObject validate Connections. | public | PoolableConnectionFactory(ConnectionFactory connFactory, ObjectPool pool, KeyedObjectPoolFactory stmtPoolFactory, String validationQuery, boolean defaultReadOnly, boolean defaultAutoCommit, int defaultTransactionIsolation, AbandonedConfig config) Create a new PoolableConnectionFactory.
Parameters: connFactory - the ConnectionFactory from which to obtain base Connections Parameters: pool - the ObjectPool in which to pool those Connections Parameters: stmtPoolFactory - the KeyedObjectPoolFactory to use to create KeyedObjectPools for pooling java.sql.PreparedStatements, or null to disable java.sql.PreparedStatement pooling Parameters: validationQuery - a query to use to PoolableConnectionFactory.validateObject validate Connections. | public | PoolableConnectionFactory(ConnectionFactory connFactory, ObjectPool pool, KeyedObjectPoolFactory stmtPoolFactory, String validationQuery, boolean defaultReadOnly, boolean defaultAutoCommit, int defaultTransactionIsolation, String defaultCatalog, AbandonedConfig config) Create a new PoolableConnectionFactory.
Parameters: connFactory - the ConnectionFactory from which to obtain base Connections Parameters: pool - the ObjectPool in which to pool those Connections Parameters: stmtPoolFactory - the KeyedObjectPoolFactory to use to create KeyedObjectPools for pooling java.sql.PreparedStatements, or null to disable java.sql.PreparedStatement pooling Parameters: validationQuery - a query to use to PoolableConnectionFactory.validateObject validate Connections. | public | PoolableConnectionFactory(ConnectionFactory connFactory, ObjectPool pool, KeyedObjectPoolFactory stmtPoolFactory, String validationQuery, Boolean defaultReadOnly, boolean defaultAutoCommit, int defaultTransactionIsolation, String defaultCatalog, AbandonedConfig config) Create a new PoolableConnectionFactory.
Parameters: connFactory - the ConnectionFactory from which to obtain base Connections Parameters: pool - the ObjectPool in which to pool those Connections Parameters: stmtPoolFactory - the KeyedObjectPoolFactory to use to create KeyedObjectPools for pooling java.sql.PreparedStatements, or null to disable java.sql.PreparedStatement pooling Parameters: validationQuery - a query to use to PoolableConnectionFactory.validateObject validate Connections. |
UNKNOWN_TRANSACTIONISOLATION | final static int UNKNOWN_TRANSACTIONISOLATION(Code) | | Internal constant to indicate the level is not set.
|
_defaultAutoCommit | protected boolean _defaultAutoCommit(Code) | | |
_defaultTransactionIsolation | protected int _defaultTransactionIsolation(Code) | | |
_pool | protected ObjectPool _pool(Code) | | |
_stmtPoolFactory | protected KeyedObjectPoolFactory _stmtPoolFactory(Code) | | |
PoolableConnectionFactory | public PoolableConnectionFactory(ConnectionFactory connFactory, ObjectPool pool, KeyedObjectPoolFactory stmtPoolFactory, String validationQuery, boolean defaultReadOnly, boolean defaultAutoCommit)(Code) | | Create a new PoolableConnectionFactory.
Parameters: connFactory - the ConnectionFactory from which to obtain base Connections Parameters: pool - the ObjectPool in which to pool those Connections Parameters: stmtPoolFactory - the KeyedObjectPoolFactory to use to create KeyedObjectPools for pooling java.sql.PreparedStatements, or null to disable java.sql.PreparedStatement pooling Parameters: validationQuery - a query to use to PoolableConnectionFactory.validateObject validate Connections. Should return at least one row. Using null turns off validation. Parameters: defaultReadOnly - the default "read only" setting for borrowed Connections Parameters: defaultAutoCommit - the default "auto commit" setting for returned Connections |
PoolableConnectionFactory | public PoolableConnectionFactory(ConnectionFactory connFactory, ObjectPool pool, KeyedObjectPoolFactory stmtPoolFactory, String validationQuery, boolean defaultReadOnly, boolean defaultAutoCommit, int defaultTransactionIsolation)(Code) | | Create a new PoolableConnectionFactory.
Parameters: connFactory - the ConnectionFactory from which to obtain base Connections Parameters: pool - the ObjectPool in which to pool those Connections Parameters: stmtPoolFactory - the KeyedObjectPoolFactory to use to create KeyedObjectPools for pooling java.sql.PreparedStatements, or null to disable java.sql.PreparedStatement pooling Parameters: validationQuery - a query to use to PoolableConnectionFactory.validateObject validate Connections. Should return at least one row. Using null turns off validation. Parameters: defaultReadOnly - the default "read only" setting for borrowed Connections Parameters: defaultAutoCommit - the default "auto commit" setting for returned Connections Parameters: defaultTransactionIsolation - the default "Transaction Isolation" setting for returned Connections |
PoolableConnectionFactory | public PoolableConnectionFactory(ConnectionFactory connFactory, ObjectPool pool, KeyedObjectPoolFactory stmtPoolFactory, String validationQuery, boolean defaultReadOnly, boolean defaultAutoCommit, AbandonedConfig config)(Code) | | Create a new PoolableConnectionFactory.
Parameters: connFactory - the ConnectionFactory from which to obtain base Connections Parameters: pool - the ObjectPool in which to pool those Connections Parameters: stmtPoolFactory - the KeyedObjectPoolFactory to use to create KeyedObjectPools for pooling java.sql.PreparedStatements, or null to disable java.sql.PreparedStatement pooling Parameters: validationQuery - a query to use to PoolableConnectionFactory.validateObject validate Connections. Should return at least one row. Using null turns off validation. Parameters: defaultReadOnly - the default "read only" setting for borrowed Connections Parameters: defaultAutoCommit - the default "auto commit" setting for returned Connections Parameters: config - the AbandonedConfig if tracing SQL objects |
PoolableConnectionFactory | public PoolableConnectionFactory(ConnectionFactory connFactory, ObjectPool pool, KeyedObjectPoolFactory stmtPoolFactory, String validationQuery, boolean defaultReadOnly, boolean defaultAutoCommit, int defaultTransactionIsolation, AbandonedConfig config)(Code) | | Create a new PoolableConnectionFactory.
Parameters: connFactory - the ConnectionFactory from which to obtain base Connections Parameters: pool - the ObjectPool in which to pool those Connections Parameters: stmtPoolFactory - the KeyedObjectPoolFactory to use to create KeyedObjectPools for pooling java.sql.PreparedStatements, or null to disable java.sql.PreparedStatement pooling Parameters: validationQuery - a query to use to PoolableConnectionFactory.validateObject validate Connections. Should return at least one row. Using null turns off validation. Parameters: defaultReadOnly - the default "read only" setting for borrowed Connections Parameters: defaultAutoCommit - the default "auto commit" setting for returned Connections Parameters: defaultTransactionIsolation - the default "Transaction Isolation" setting for returned Connections Parameters: config - the AbandonedConfig if tracing SQL objects |
PoolableConnectionFactory | public PoolableConnectionFactory(ConnectionFactory connFactory, ObjectPool pool, KeyedObjectPoolFactory stmtPoolFactory, String validationQuery, boolean defaultReadOnly, boolean defaultAutoCommit, int defaultTransactionIsolation, String defaultCatalog, AbandonedConfig config)(Code) | | Create a new PoolableConnectionFactory.
Parameters: connFactory - the ConnectionFactory from which to obtain base Connections Parameters: pool - the ObjectPool in which to pool those Connections Parameters: stmtPoolFactory - the KeyedObjectPoolFactory to use to create KeyedObjectPools for pooling java.sql.PreparedStatements, or null to disable java.sql.PreparedStatement pooling Parameters: validationQuery - a query to use to PoolableConnectionFactory.validateObject validate Connections. Should return at least one row. Using null turns off validation. Parameters: defaultReadOnly - the default "read only" setting for borrowed Connections Parameters: defaultAutoCommit - the default "auto commit" setting for returned Connections Parameters: defaultTransactionIsolation - the default "Transaction Isolation" setting for returned Connections Parameters: defaultCatalog - the default "catalog" setting for returned Connections Parameters: config - the AbandonedConfig if tracing SQL objects |
PoolableConnectionFactory | public PoolableConnectionFactory(ConnectionFactory connFactory, ObjectPool pool, KeyedObjectPoolFactory stmtPoolFactory, String validationQuery, Boolean defaultReadOnly, boolean defaultAutoCommit, int defaultTransactionIsolation, String defaultCatalog, AbandonedConfig config)(Code) | | Create a new PoolableConnectionFactory.
Parameters: connFactory - the ConnectionFactory from which to obtain base Connections Parameters: pool - the ObjectPool in which to pool those Connections Parameters: stmtPoolFactory - the KeyedObjectPoolFactory to use to create KeyedObjectPools for pooling java.sql.PreparedStatements, or null to disable java.sql.PreparedStatement pooling Parameters: validationQuery - a query to use to PoolableConnectionFactory.validateObject validate Connections. Should return at least one row. Using null turns off validation. Parameters: defaultReadOnly - the default "read only" setting for borrowed Connections Parameters: defaultAutoCommit - the default "auto commit" setting for returned Connections Parameters: defaultTransactionIsolation - the default "Transaction Isolation" setting for returned Connections Parameters: defaultCatalog - the default "catalog" setting for returned Connections Parameters: config - the AbandonedConfig if tracing SQL objects |
getPool | public ObjectPool getPool()(Code) | | |
setDefaultAutoCommit | public void setDefaultAutoCommit(boolean defaultAutoCommit)(Code) | | Sets the default "auto commit" setting for borrowed
Connection s
Parameters: defaultAutoCommit - the default "auto commit" setting for borrowed Connections |
setDefaultCatalog | public void setDefaultCatalog(String defaultCatalog)(Code) | | Sets the default "catalog" setting for borrowed
Connection s
Parameters: defaultCatalog - the default "catalog" setting for borrowed Connections |
setDefaultReadOnly | public void setDefaultReadOnly(boolean defaultReadOnly)(Code) | | Sets the default "read only" setting for borrowed
Connection s
Parameters: defaultReadOnly - the default "read only" setting for borrowed Connections |
setDefaultTransactionIsolation | public void setDefaultTransactionIsolation(int defaultTransactionIsolation)(Code) | | Sets the default "Transaction Isolation" setting for borrowed
Connection s
Parameters: defaultTransactionIsolation - the default "Transaction Isolation" setting for returned Connections |
setPool | public synchronized void setPool(ObjectPool pool)(Code) | | Sets the
ObjectPool in which to pool
Connection s.
Parameters: pool - the ObjectPool in which to pool those Connections |
validateObject | public boolean validateObject(Object obj)(Code) | | |
|
|