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 SourceManagedConnectionFactory
implementation 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.ManagedConnection
createManagedConnection(Subject subject, jakarta.resource.spi.ConnectionRequestInfo cxRequestInfo)
Creates a new physical connection to the underlying EIS resource manager.boolean
equals(Object other)
Check if thisManagedConnectionFactory
is equal to anotherManagedConnectionFactory
.DataSource
getDataSource()
Returns the underlying datasourceint
hashCode()
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:
createManagedConnection
in interfacejakarta.resource.spi.ManagedConnectionFactory
- Specified by:
createManagedConnection
in classManagedConnectionFactoryImpl
- Parameters:
subject
-Subject
instance passed by the application servercxRequestInfo
-ConnectionRequestInfo
which may be created as a result of the invocationgetConnection(user, password)
on theDataSource
object- Returns:
ManagedConnection
object created- Throws:
jakarta.resource.ResourceException
- if there is an error in instantiating theDataSource
object used for the creation of theManagedConnection
objectSecurityException
- if there inoPasswordCredential
object 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:
getDataSource
in classManagedConnectionFactoryImpl
- Returns:
- DataSource of jdbc vendor
- Throws:
jakarta.resource.ResourceException
-
equals
public boolean equals(Object other)
Check if thisManagedConnectionFactory
is equal to anotherManagedConnectionFactory
.- Specified by:
equals
in interfacejakarta.resource.spi.ManagedConnectionFactory
- Specified by:
equals
in classManagedConnectionFactoryImpl
- Parameters:
other
-ManagedConnectionFactory
object for checking equality with- Returns:
- true if the property sets of both the
ManagedConnectionFactory
objects are the same false otherwise
-
hashCode
public int hashCode()
Description copied from class:ManagedConnectionFactoryImpl
Returns the hash code for thisManagedConnectionFactoryImpl
.- Specified by:
hashCode
in interfacejakarta.resource.spi.ManagedConnectionFactory
- Overrides:
hashCode
in classManagedConnectionFactoryImpl
- Returns:
- hash code for this
ManagedConnectionFactoryImpl
-
-