Package com.sun.gjc.spi
Class DMManagedConnectionFactory
- java.lang.Object
-
- com.sun.gjc.spi.ManagedConnectionFactoryImpl
-
- com.sun.gjc.spi.DMManagedConnectionFactory
-
- 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 DMManagedConnectionFactory extends ManagedConnectionFactoryImpl
Driver ManagerManagedConnectionFactory
implementation for Generic JDBC Connector.- Version:
- 1.0, 02/07/31
- 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 DMManagedConnectionFactory()
-
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
.String
getConnectionURL()
Gets the connection url.Object
getDataSource()
Returns the underlying datasourceString
getURL()
int
hashCode()
Returns the hash code for thisManagedConnectionFactoryImpl
.void
setClassName(String className)
Sets the class name of the drivervoid
setConnectionURL(String url)
Sets the connection url.void
setLoginTimeOut(String loginTimeOut)
Sets the login timeout.void
setURL(String url)
-
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, setConnectionValidationRequired, setDatabaseName, setDataSourceName, setDelimiter, setDescription, setDriverProperties, setEscapeCharacter, setGuaranteeIsolationLevel, setInitSql, setIsolation, 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 request
-
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
-
setLoginTimeOut
public void setLoginTimeOut(String loginTimeOut)
Sets the login timeout.- Overrides:
setLoginTimeOut
in classManagedConnectionFactoryImpl
- Parameters:
loginTimeOut
-String
- See Also:
getLoginTimeOut
-
setClassName
@ConfigProperty(type=java.lang.String.class, defaultValue="org.h2.Driver") public void setClassName(String className)
Sets the class name of the driver- Overrides:
setClassName
in classManagedConnectionFactoryImpl
- Parameters:
className
-String
-
setURL
public void setURL(String url)
-
getURL
public String getURL()
-
setConnectionURL
public void setConnectionURL(String url)
Sets the connection url.- Parameters:
url
-String
- See Also:
getConnectionURL
-
getConnectionURL
public String getConnectionURL()
Gets the connection url.- Returns:
- url
- See Also:
setConnectionURL
-
getDataSource
public Object getDataSource() throws jakarta.resource.ResourceException
Description copied from class:ManagedConnectionFactoryImpl
Returns the underlying datasource- Overrides:
getDataSource
in classManagedConnectionFactoryImpl
- Returns:
- DataSource of jdbc vendor
- Throws:
jakarta.resource.ResourceException
-
-