Package com.sun.gjc.spi
Class XAManagedConnectionFactory
- java.lang.Object
-
- com.sun.gjc.spi.ManagedConnectionFactoryImpl
-
- com.sun.gjc.spi.XAManagedConnectionFactory
-
- 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 XAManagedConnectionFactory extends ManagedConnectionFactoryImpl
XAManagedConnectionFactory
implementation for Generic JDBC Connector.- Version:
- 1.0, 02/07/27
- 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 XAManagedConnectionFactory()
-
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
.XADataSource
getDataSource()
Returns the underlying datasourceString
getInitialPoolSize()
Gets the initial pool size.String
getMaxIdleTime()
Gets the maximum idle time.String
getMaxPoolSize()
Gets the maximum pool size.String
getMaxStatements()
Gets the max statements.String
getMinPoolSize()
Gets the minimum pool size.String
getPropertyCycle()
Gets the property cycle.int
hashCode()
Returns the hash code for thisManagedConnectionFactoryImpl
.void
setClassName(String className)
Sets the class name of the data sourcevoid
setInitialPoolSize(String initPoolSz)
Sets the initial pool size.void
setMaxIdleTime(String maxIdleTime)
Sets the maximum idle time.void
setMaxPoolSize(String maxPoolSz)
Sets the maximum pool size.void
setMaxStatements(String maxStmts)
Sets the max statements.void
setMinPoolSize(String minPoolSz)
Sets the minimum pool size.void
setPropertyCycle(String propCycle)
Sets the property cycle.-
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, 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 XADataSource 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
-
setClassName
@ConfigProperty(type=java.lang.String.class, defaultValue="org.h2.jdbcx.JdbcDataSource") public void setClassName(String className)
Sets the class name of the data source- Overrides:
setClassName
in classManagedConnectionFactoryImpl
- Parameters:
className
-String
-
setMaxStatements
public void setMaxStatements(String maxStmts)
Sets the max statements.- Parameters:
maxStmts
-String
- See Also:
getMaxStatements
-
getMaxStatements
public String getMaxStatements()
Gets the max statements.- Returns:
- maxStmts
- See Also:
setMaxStatements
-
setInitialPoolSize
public void setInitialPoolSize(String initPoolSz)
Sets the initial pool size.- Parameters:
initPoolSz
-String
- See Also:
getInitialPoolSize
-
getInitialPoolSize
public String getInitialPoolSize()
Gets the initial pool size.- Returns:
- initPoolSz
- See Also:
setInitialPoolSize
-
setMinPoolSize
public void setMinPoolSize(String minPoolSz)
Sets the minimum pool size.- Parameters:
minPoolSz
-String
- See Also:
getMinPoolSize
-
getMinPoolSize
public String getMinPoolSize()
Gets the minimum pool size.- Returns:
- minPoolSz
- See Also:
setMinPoolSize
-
setMaxPoolSize
public void setMaxPoolSize(String maxPoolSz)
Sets the maximum pool size.- Parameters:
maxPoolSz
-String
- See Also:
getMaxPoolSize
-
getMaxPoolSize
public String getMaxPoolSize()
Gets the maximum pool size.- Returns:
- maxPoolSz
- See Also:
setMaxPoolSize
-
setMaxIdleTime
public void setMaxIdleTime(String maxIdleTime)
Sets the maximum idle time.- Parameters:
maxIdleTime
- String- See Also:
getMaxIdleTime
-
getMaxIdleTime
public String getMaxIdleTime()
Gets the maximum idle time.- Returns:
- maxIdleTime
- See Also:
setMaxIdleTime
-
setPropertyCycle
public void setPropertyCycle(String propCycle)
Sets the property cycle.- Parameters:
propCycle
-String
- See Also:
getPropertyCycle
-
getPropertyCycle
public String getPropertyCycle()
Gets the property cycle.- Returns:
- propCycle
- See Also:
setPropertyCycle
-
-