@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, writeExternal
public ConnectionPoolDataSource getDataSource() throws javax.resource.ResourceException
getDataSource
in class ManagedConnectionFactoryImpl
javax.resource.ResourceException
public javax.resource.spi.ManagedConnection createManagedConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo cxRequestInfo) throws javax.resource.ResourceException
createManagedConnection
in interface javax.resource.spi.ManagedConnectionFactory
createManagedConnection
in class ManagedConnectionFactoryImpl
subject
- 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.ManagedConnectionFactory
equals
in class ManagedConnectionFactoryImpl
other
- ManagedConnectionFactory
object for checking equality withManagedConnectionFactory
objects are the same
false otherwisepublic int hashCode()
ManagedConnectionFactoryImpl
ManagedConnectionFactoryImpl
.hashCode
in interface javax.resource.spi.ManagedConnectionFactory
hashCode
in class ManagedConnectionFactoryImpl
ManagedConnectionFactoryImpl
public void setMaxStatements(String maxStmts)
maxStmts
- String
getMaxStatements
public String getMaxStatements()
setMaxStatements
public void setInitialPoolSize(String initPoolSz)
initPoolSz
- String
getInitialPoolSize
public String getInitialPoolSize()
setInitialPoolSize
public void setMinPoolSize(String minPoolSz)
minPoolSz
- String
getMinPoolSize
public String getMinPoolSize()
setMinPoolSize
public void setMaxPoolSize(String maxPoolSz)
maxPoolSz
- String
getMaxPoolSize
public String getMaxPoolSize()
setMaxPoolSize
public void setMaxIdleTime(String maxIdleTime)
maxIdleTime
- StringgetMaxIdleTime
public String getMaxIdleTime()
setMaxIdleTime
public void setPropertyCycle(String propCycle)
propCycle
- String
getPropertyCycle
public String getPropertyCycle()
setPropertyCycle
Copyright © 2021. All rights reserved.