public class PoolableManagedConnectionFactory extends PoolableConnectionFactory
PoolableConnectionFactory that creates PoolableManagedConnections.| 构造器和说明 |
|---|
PoolableManagedConnectionFactory(XAConnectionFactory connFactory,
javax.management.ObjectName dataSourceJmxName)
Creates a PoolableManagedConnectionFactory and attach it to a connection pool.
|
| 限定符和类型 | 方法和说明 |
|---|---|
TransactionRegistry |
getTransactionRegistry() |
PooledObject<PoolableConnection> |
makeObject()
Uses the configured XAConnectionFactory to create a
PoolableManagedConnection. |
activateObject, destroyObject, getCacheState, getConnectionFactory, getConnectionIndex, getConnectionInitSqls, getDataSourceJmxName, getDataSourceJmxObjectName, getDefaultAutoCommit, getDefaultCatalog, getDefaultQueryTimeout, getDefaultQueryTimeoutSeconds, getDefaultReadOnly, getDefaultSchema, getDefaultTransactionIsolation, getDisconnectionSqlCodes, getMaxConnLifetimeMillis, getMaxOpenPreparedStatements, getPool, getPoolStatements, getValidationQuery, getValidationQueryTimeoutSeconds, initializeConnection, isAutoCommitOnReturn, isEnableAutoCommitOnReturn, isFastFailValidation, isRollbackOnReturn, passivateObject, setAutoCommitOnReturn, setCacheState, setConnectionInitSql, setDefaultAutoCommit, setDefaultCatalog, setDefaultQueryTimeout, setDefaultReadOnly, setDefaultSchema, setDefaultTransactionIsolation, setDisconnectionSqlCodes, setEnableAutoCommitOnReturn, setFastFailValidation, setMaxConnLifetimeMillis, setMaxOpenPreparedStatements, setMaxOpenPrepatedStatements, setPool, setPoolStatements, setRollbackOnReturn, setValidationQuery, setValidationQueryTimeout, validateConnection, validateObjectpublic PoolableManagedConnectionFactory(XAConnectionFactory connFactory, javax.management.ObjectName dataSourceJmxName)
connFactory - XAConnectionFactorydataSourceJmxName - The data source name.public TransactionRegistry getTransactionRegistry()
public 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 在接口中 PooledObjectFactory<PoolableConnection>makeObject 在类中 PoolableConnectionFactoryPooledObject wrapping an instance that can be served by the pooljava.lang.Exception - if there is a problem creating a new instance,
this will be propagated to the code requesting an object.