@ConnectionDefinition(connectionFactory=javax.sql.DataSource.class, connectionFactoryImpl=AbstractDataSource.class, connection=java.sql.Connection.class, connectionImpl=ConnectionHolder.class) public class DSManagedConnectionFactory 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 |
|---|
DSManagedConnectionFactory() |
| 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. |
DataSource |
getDataSource()
Returns the underlying datasource
|
int |
hashCode()
Returns the hash code for this
ManagedConnectionFactoryImpl. |
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 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 DataSource getDataSource() throws javax.resource.ResourceException
getDataSource in class ManagedConnectionFactoryImpljavax.resource.ResourceExceptionpublic 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 ManagedConnectionFactoryImplManagedConnectionFactoryImplCopyright © 2019. All rights reserved.