Package com.sun.gjc.spi
Class DSManagedConnectionFactory
- java.lang.Object
-
- com.sun.gjc.spi.ManagedConnectionFactoryImpl
-
- com.sun.gjc.spi.DSManagedConnectionFactory
-
- All Implemented Interfaces:
MCFLifecycleListener,jakarta.resource.spi.ManagedConnectionFactory,jakarta.resource.spi.ResourceAdapterAssociation,jakarta.resource.spi.ValidatingManagedConnectionFactory,Externalizable,Serializable
@ConnectionDefinition(connectionFactory=javax.sql.DataSource.class, connectionFactoryImpl=AbstractDataSource.class, connection=java.sql.Connection.class, connectionImpl=ConnectionHolder.class) public class DSManagedConnectionFactory extends ManagedConnectionFactoryImpl
Data SourceManagedConnectionFactoryimplementation for Generic JDBC Connector.- Version:
- 1.0, 02/07/30
- Author:
- Evani Sai Surya Kiran
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.sun.gjc.spi.ManagedConnectionFactoryImpl
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 Summary
Constructors Constructor Description DSManagedConnectionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.resource.spi.ManagedConnectioncreateManagedConnection(Subject subject, jakarta.resource.spi.ConnectionRequestInfo cxRequestInfo)Creates a new physical connection to the underlying EIS resource manager.booleanequals(Object other)Check if thisManagedConnectionFactoryis equal to anotherManagedConnectionFactory.DataSourcegetDataSource()Returns the underlying datasourceinthashCode()Returns the hash code for thisManagedConnectionFactoryImpl.-
Methods inherited from class com.sun.gjc.spi.ManagedConnectionFactoryImpl
computeStatementWrappingStatus, constructManagedConnection, createConnectionFactory, createConnectionFactory, getApplicationName, getClassName, getConnectionValidationRequired, getDatabaseName, getDataSourceName, getDelimiter, getDescription, getDriverProperties, getEscapeCharacter, getGuaranteeIsolationLevel, getInitSql, getInvalidConnections, 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, 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
-
-
-
-
Method Detail
-
createManagedConnection
public jakarta.resource.spi.ManagedConnection createManagedConnection(Subject subject, jakarta.resource.spi.ConnectionRequestInfo cxRequestInfo) throws jakarta.resource.ResourceException
Creates a new physical connection to the underlying EIS resource manager.- Specified by:
createManagedConnectionin interfacejakarta.resource.spi.ManagedConnectionFactory- Specified by:
createManagedConnectionin classManagedConnectionFactoryImpl- Parameters:
subject-Subjectinstance passed by the application servercxRequestInfo-ConnectionRequestInfowhich may be created as a result of the invocationgetConnection(user, password)on theDataSourceobject- Returns:
ManagedConnectionobject created- Throws:
jakarta.resource.ResourceException- if there is an error in instantiating theDataSourceobject used for the creation of theManagedConnectionobjectSecurityException- if there inoPasswordCredentialobject satisfying this requestjakarta.resource.spi.ResourceAllocationException- if there is an error in allocating the physical connection
-
getDataSource
public DataSource getDataSource() throws jakarta.resource.ResourceException
Returns the underlying datasource- Overrides:
getDataSourcein classManagedConnectionFactoryImpl- Returns:
- DataSource of jdbc vendor
- Throws:
jakarta.resource.ResourceException
-
equals
public boolean equals(Object other)
Check if thisManagedConnectionFactoryis equal to anotherManagedConnectionFactory.- Specified by:
equalsin interfacejakarta.resource.spi.ManagedConnectionFactory- Specified by:
equalsin classManagedConnectionFactoryImpl- Parameters:
other-ManagedConnectionFactoryobject for checking equality with- Returns:
- true if the property sets of both the
ManagedConnectionFactoryobjects are the same false otherwise
-
hashCode
public int hashCode()
Description copied from class:ManagedConnectionFactoryImplReturns the hash code for thisManagedConnectionFactoryImpl.- Specified by:
hashCodein interfacejakarta.resource.spi.ManagedConnectionFactory- Overrides:
hashCodein classManagedConnectionFactoryImpl- Returns:
- hash code for this
ManagedConnectionFactoryImpl
-
-