@ConnectionDefinition(connectionFactory=javax.sql.DataSource.class, connectionFactoryImpl=AbstractDataSource.class, connection=java.sql.Connection.class, connectionImpl=ConnectionHolder.class) public class CPManagedConnectionFactory extends ManagedConnectionFactoryImpl
ManagedConnectionFactory implementation for Generic JDBC Connector.cm_, dsObjBuilder, isLazyCm_, JVM_OPTION_STATEMENT_WRAPPING_NOT_SET, JVM_OPTION_STATEMENT_WRAPPING_OFF, JVM_OPTION_STATEMENT_WRAPPING_ON, localStrings, logWriter, ra, spec, sqlTraceDelegator, statementWrapping| Constructor and Description |
|---|
CPManagedConnectionFactory() |
| Modifier and Type | Method and Description |
|---|---|
javax.resource.spi.ManagedConnection |
createManagedConnection(Subject subject,
javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
Creates a new physical connection to the underlying EIS resource
manager.
|
boolean |
equals(Object other)
Check if this
ManagedConnectionFactory is equal to
another ManagedConnectionFactory. |
ConnectionPoolDataSource |
getDataSource()
Returns the underlying datasource
|
String |
getInitialPoolSize()
Gets the initial pool size.
|
String |
getMaxIdleTime()
Gets the maximum idle time.
|
String |
getMaxPoolSize()
Gets the maximum pool size.
|
String |
getMaxStatements()
Gets the max statements.
|
String |
getMinPoolSize()
Gets the minimum pool size.
|
String |
getPropertyCycle()
Gets the property cycle.
|
int |
hashCode()
Returns the hash code for this
ManagedConnectionFactoryImpl. |
void |
setInitialPoolSize(String initPoolSz)
Sets the initial pool size.
|
void |
setMaxIdleTime(String maxIdleTime)
Sets the maximum idle time.
|
void |
setMaxPoolSize(String maxPoolSz)
Sets the maximum pool size.
|
void |
setMaxStatements(String maxStmts)
Sets the max statements.
|
void |
setMinPoolSize(String minPoolSz)
Sets the minimum pool size.
|
void |
setPropertyCycle(String propCycle)
Sets the property cycle.
|
computeStatementWrappingStatus, constructManagedConnection, createConnectionFactory, createConnectionFactory, getApplicationName, getClassName, getConnectionValidationRequired, getDatabaseName, getDataSourceName, getDelimiter, getDescription, getDriverProperties, getEscapeCharacter, getGuaranteeIsolationLevel, getInitSql, getInvalidConnections, getJdbc30DataSource, getJdbcObjectsFactory, getLoginTimeOut, getLogJdbcCalls, getLogWriter, getMaxCacheSize, getModuleName, getNetworkProtocol, getNumberOfTopQueriesToReport, getPassword, getPoolInfo, getPoolMonitoringSubTreeRoot, getPoolName, getPortNumber, getResourceAdapter, getRoleName, getServerName, getSlowQueryThresholdInSeconds, getSqlTraceListeners, getStatementCacheSize, getStatementCacheType, getStatementLeakReclaim, getStatementLeakTimeoutInSeconds, getStatementTimeout, getStatementWrapping, getTimeToKeepQueriesInMinutes, getTransactionIsolation, getUser, getValidationClassName, getValidationMethod, getValidationTableName, isEqual, isStatementWrappingEnabled, isValidByAutoCommit, isValidByCustomValidation, isValidByMetaData, isValidByTableQuery, logFine, matchManagedConnections, mcfCreated, mcfDestroyed, readExternal, setApplicationName, setClassName, setConnectionValidationRequired, setDatabaseName, setDataSourceName, setDelimiter, setDescription, setDriverProperties, setEscapeCharacter, setGuaranteeIsolationLevel, setInitSql, setIsolation, setJdbc30DataSource, setLoginTimeOut, setLogJdbcCalls, setLogWriter, setMaxCacheSize, setModuleName, setNetworkProtocol, setNumberOfTopQueriesToReport, setPassword, setPoolMonitoringSubTreeRoot, setPoolName, setPortNumber, setResourceAdapter, setRoleName, setServerName, setSlowQueryThresholdInSeconds, setSqlTraceListeners, setStatementCacheSize, setStatementCacheType, setStatementLeakReclaim, setStatementLeakTimeoutInSeconds, setStatementTimeout, setStatementWrapping, setTimeToKeepQueriesInMinutes, setTransactionIsolation, setUser, setValidationClassName, setValidationMethod, setValidationTableName, validateAndSetIsolation, writeExternalpublic ConnectionPoolDataSource getDataSource() throws javax.resource.ResourceException
getDataSource in class ManagedConnectionFactoryImpljavax.resource.ResourceExceptionpublic javax.resource.spi.ManagedConnection createManagedConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo cxRequestInfo) throws javax.resource.ResourceException
createManagedConnection in interface javax.resource.spi.ManagedConnectionFactorycreateManagedConnection in class ManagedConnectionFactoryImplsubject - Subject instance passed by the application servercxRequestInfo - ConnectionRequestInfo which may be created
as a result of the invocation getConnection(user, password)
on the DataSource objectManagedConnection object createdjavax.resource.ResourceException - if there is an error in instantiating the
DataSource object used for the
creation of the ManagedConnection objectSecurityException - if there ino PasswordCredential object
satisfying this requestjavax.resource.spi.ResourceAllocationException - if there is an error in allocating the
physical connectionpublic boolean equals(Object other)
ManagedConnectionFactory is equal to
another ManagedConnectionFactory.equals in interface javax.resource.spi.ManagedConnectionFactoryequals in class ManagedConnectionFactoryImplother - ManagedConnectionFactory object for checking equality withManagedConnectionFactory objects are the same
false otherwisepublic int hashCode()
ManagedConnectionFactoryImplManagedConnectionFactoryImpl.hashCode in interface javax.resource.spi.ManagedConnectionFactoryhashCode in class ManagedConnectionFactoryImplManagedConnectionFactoryImplpublic void setMaxStatements(String maxStmts)
maxStmts - StringgetMaxStatementspublic String getMaxStatements()
setMaxStatementspublic void setInitialPoolSize(String initPoolSz)
initPoolSz - StringgetInitialPoolSizepublic String getInitialPoolSize()
setInitialPoolSizepublic void setMinPoolSize(String minPoolSz)
minPoolSz - StringgetMinPoolSizepublic String getMinPoolSize()
setMinPoolSizepublic void setMaxPoolSize(String maxPoolSz)
maxPoolSz - StringgetMaxPoolSizepublic String getMaxPoolSize()
setMaxPoolSizepublic void setMaxIdleTime(String maxIdleTime)
maxIdleTime - StringgetMaxIdleTimepublic String getMaxIdleTime()
setMaxIdleTimepublic void setPropertyCycle(String propCycle)
propCycle - StringgetPropertyCyclepublic String getPropertyCycle()
setPropertyCycleCopyright © 2019. All rights reserved.