public class PoolableManagedConnectionFactory extends PoolableConnectionFactory
PoolableConnectionFactory that creates PoolableManagedConnections.| Constructor | Description |
|---|---|
PoolableManagedConnectionFactory(XAConnectionFactory connFactory,
javax.management.ObjectName dataSourceJmxName) |
Create a PoolableManagedConnectionFactory and attach it to a connection pool.
|
| Modifier and Type | Method | Description |
|---|---|---|
org.apache.commons.pool2.PooledObject<PoolableConnection> |
makeObject() |
Uses the configured XAConnectionFactory to create a
PoolableManagedConnection. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitactivateObject, destroyObject, getDefaultQueryTimeout, getDisconnectionSqlCodes, getPool, isEnableAutoCommitOnReturn, isFastFailValidation, isRollbackOnReturn, passivateObject, setCacheState, setConnectionInitSql, setDefaultAutoCommit, setDefaultCatalog, setDefaultQueryTimeout, setDefaultReadOnly, setDefaultTransactionIsolation, setDisconnectionSqlCodes, setEnableAutoCommitOnReturn, setFastFailValidation, setMaxConnLifetimeMillis, setMaxOpenPrepatedStatements, setPool, setPoolStatements, setRollbackOnReturn, setValidationQuery, setValidationQueryTimeout, validateConnection, validateObjectpublic PoolableManagedConnectionFactory(XAConnectionFactory connFactory, javax.management.ObjectName dataSourceJmxName)
connFactory - XAConnectionFactorypublic org.apache.commons.pool2.PooledObject<PoolableConnection> makeObject() throws java.lang.Exception
PoolableManagedConnection.
Throws IllegalStateException if the connection factory returns null.
Also initializes the connection using configured initialization sql (if provided)
and sets up a prepared statement pool associated with the PoolableManagedConnection
if statement pooling is enabled.makeObject in class PoolableConnectionFactoryjava.lang.ExceptionCopyright © 2001-2015 Apache Software Foundation. Documenation generated March 25 2019.