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 ManagerManagedConnectionFactoryimplementation 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.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.StringgetConnectionURL()Gets the connection url.ObjectgetDataSource()Returns the underlying datasourceStringgetURL()inthashCode()Returns the hash code for thisManagedConnectionFactoryImpl.voidsetClassName(String className)Sets the class name of the drivervoidsetConnectionURL(String url)Sets the connection url.voidsetLoginTimeOut(String loginTimeOut)Sets the login timeout.voidsetURL(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:
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 request
-
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
-
setLoginTimeOut
public void setLoginTimeOut(String loginTimeOut)
Sets the login timeout.- Overrides:
setLoginTimeOutin 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:
setClassNamein 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:ManagedConnectionFactoryImplReturns the underlying datasource- Overrides:
getDataSourcein classManagedConnectionFactoryImpl- Returns:
- DataSource of jdbc vendor
- Throws:
jakarta.resource.ResourceException
-
-