public class ManagedDataSource extends PoolingDataSource
| Constructor and Description |
|---|
ManagedDataSource()
Creates an uninitialized datasource.
|
ManagedDataSource(ObjectPool pool,
TransactionRegistry transactionRegistry)
Creates a ManagedDataSource which obtains connections from the specified pool and
manages them using the specified transaction registry.
|
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection()
Return a
Connection from my pool,
according to the contract specified by ObjectPool.borrowObject(). |
void |
setTransactionRegistry(TransactionRegistry transactionRegistry)
Sets the transaction registry from the XAConnectionFactory used to create the pool.
|
getConnection, getLoginTimeout, getLogWriter, getParentLogger, isAccessToUnderlyingConnectionAllowed, isWrapperFor, setAccessToUnderlyingConnectionAllowed, setLoginTimeout, setLogWriter, setPool, unwrappublic ManagedDataSource()
public ManagedDataSource(ObjectPool pool, TransactionRegistry transactionRegistry)
pool - the connection pooltransactionRegistry - the transaction registry obtained from the
XAConnectionFactory used to create the connection pool object factorypublic Connection getConnection() throws SQLException
PoolingDataSourceConnection from my pool,
according to the contract specified by ObjectPool.borrowObject().getConnection in interface DataSourcegetConnection in class PoolingDataSourceSQLExceptionpublic void setTransactionRegistry(TransactionRegistry transactionRegistry)
transactionRegistry - the transaction registry acquired from the XAConnectionFactory
used to create the poolCopyright © 2001-2004 Apache Software Foundation. Documenation generated July 9 2012.