Package org.jboss.jca.as.converters
Class LegacyTxDataSourceImpl
java.lang.Object
org.jboss.jca.as.converters.LegacyTxDataSourceImpl
- All Implemented Interfaces:
ConnectionFactory,DataSource,LocalTxDataSource,NoTxDataSource
A XaDataSource impl.
- Version:
- $Revision: $
- Author:
- Jeff Zhang
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.jca.as.converters.LocalTxDataSource
LocalTxDataSource.Tag -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildCommonPool(Integer minPoolSize, Integer initialPoolSize, Integer maxPoolSize, Boolean prefill, Boolean useStrictMin, org.jboss.jca.common.api.metadata.common.FlushStrategy flushStrategy) build pool partvoidbuildDataSourceImplbuildDsSecurity(String userName, String password, String securityDomain, org.jboss.jca.common.api.metadata.common.Extension reauthPlugin) build security partbuildOther(String urlDelimiter, String urlSelectorStrategyClassName, String newConnectionSql, Boolean useJavaContext, String poolName, Boolean enabled, String jndiName, Boolean spy, Boolean useCcm, Boolean jta) build other propertiesbuildStatement(Boolean sharePreparedStatements, Long preparedStatementsCacheSize, org.jboss.jca.common.api.metadata.ds.Statement.TrackStatementsEnum trackStatements) build statement partbuildTimeOut(Long blockingTimeoutMillis, Long idleTimeoutMinutes, Integer allocationRetry, Long allocationRetryWaitMillis, Integer xaResourceTimeout, Boolean setTxQueryTimeout, Long queryTimeout, Long useTryLock) build timeout partbuildValidation(Boolean backgroundValidation, Long backgroundValidationMillis, Boolean useFastFail, org.jboss.jca.common.api.metadata.common.Extension validConnectionChecker, String checkValidConnectionSql, Boolean validateOnMatch, org.jboss.jca.common.api.metadata.common.Extension staleConnectionChecker, org.jboss.jca.common.api.metadata.common.Extension exceptionSorter) build validation partGet the allocationRetryWaitMillis.Get the allocationRetryWaitMillis.Get the backgroundValidationMillis.Get the blockingTimeoutMillis.Get the checkValidConnectionSql.Get the connectionProperties.Get the connectionUrl.Get the driverClass.org.jboss.jca.common.api.metadata.common.ExtensionGet the exceptionSorterGet the idleTimeoutMinutes.Get the jndiName.Get the maxPoolSize.Get the minPoolSize.Get the newConnectionSql.Get the password.Get the preparedStatementsCacheSize.Get the queryTimeout.get the security domain for pure security-domain security managementorg.jboss.jca.common.api.metadata.common.ExtensionGet the staleConnectionCheckerorg.jboss.jca.common.api.metadata.ds.Statement.TrackStatementsEnumGet the trackStatements.org.jboss.jca.common.api.metadata.ds.TransactionIsolationGet the transactionIsolation.Get the urlDelimiter.Get the urlSelectorStrategyClassName.Get the userName.Get the useTryLock.org.jboss.jca.common.api.metadata.common.ExtensionGet the validConnectionCheckerGet the backgroundValidation.booleanisNoTxSeparatePoolsGet the prefill.Get the setTxQuertTimeout.Get the sharePreparedStatements.Get the useFastFail.Get the useJavaContext.Get the validateOnMatch.toString()
-
Constructor Details
-
LegacyTxDataSourceImpl
public LegacyTxDataSourceImpl(String connectionUrl, String driverClass, String dataSourceClass, String driver, org.jboss.jca.common.api.metadata.ds.TransactionIsolation transactionIsolation, Map<String, String> connectionProperties) create a LegacyTxDataSourceImpl- Parameters:
connectionUrl- connectionUrldriverClass- driverClassdataSourceClass- dataSourceClassdriver- drivertransactionIsolation- transactionIsolationconnectionProperties- connectionProperties
-
-
Method Details
-
buildDataSourceImpl
buildDataSourceImpl- Throws:
Exception- exception
-
toString
-
buildTimeOut
public LegacyTxDataSourceImpl buildTimeOut(Long blockingTimeoutMillis, Long idleTimeoutMinutes, Integer allocationRetry, Long allocationRetryWaitMillis, Integer xaResourceTimeout, Boolean setTxQueryTimeout, Long queryTimeout, Long useTryLock) throws Exception build timeout part- Parameters:
blockingTimeoutMillis- blockingTimeoutMillisidleTimeoutMinutes- idleTimeoutMinutesallocationRetry- allocationRetryallocationRetryWaitMillis- allocationRetryWaitMillisxaResourceTimeout- xaResourceTimeoutsetTxQueryTimeout- setTxQueryTimeoutqueryTimeout- queryTimeoutuseTryLock- useTryLock- Returns:
- this
- Throws:
Exception- exception
-
buildDsSecurity
public LegacyTxDataSourceImpl buildDsSecurity(String userName, String password, String securityDomain, org.jboss.jca.common.api.metadata.common.Extension reauthPlugin) throws Exception build security part- Parameters:
userName- userNamepassword- passwordsecurityDomain- securityDomainreauthPlugin- reauthPlugin- Returns:
- this
- Throws:
Exception- exception
-
buildStatement
public LegacyTxDataSourceImpl buildStatement(Boolean sharePreparedStatements, Long preparedStatementsCacheSize, org.jboss.jca.common.api.metadata.ds.Statement.TrackStatementsEnum trackStatements) throws Exception build statement part- Parameters:
sharePreparedStatements- sharePreparedStatementspreparedStatementsCacheSize- preparedStatementsCacheSizetrackStatements- trackStatements- Returns:
- this
- Throws:
Exception- exception
-
buildValidation
public LegacyTxDataSourceImpl buildValidation(Boolean backgroundValidation, Long backgroundValidationMillis, Boolean useFastFail, org.jboss.jca.common.api.metadata.common.Extension validConnectionChecker, String checkValidConnectionSql, Boolean validateOnMatch, org.jboss.jca.common.api.metadata.common.Extension staleConnectionChecker, org.jboss.jca.common.api.metadata.common.Extension exceptionSorter) throws Exception build validation part- Parameters:
backgroundValidation- backgroundValidationbackgroundValidationMillis- backgroundValidationMillisuseFastFail- useFastFailvalidConnectionChecker- validConnectionCheckercheckValidConnectionSql- checkValidConnectionSqlvalidateOnMatch- validateOnMatchstaleConnectionChecker- staleConnectionCheckerexceptionSorter- exceptionSorter- Returns:
- this
- Throws:
Exception- exception
-
buildCommonPool
public LegacyTxDataSourceImpl buildCommonPool(Integer minPoolSize, Integer initialPoolSize, Integer maxPoolSize, Boolean prefill, Boolean useStrictMin, org.jboss.jca.common.api.metadata.common.FlushStrategy flushStrategy) throws Exception build pool part- Parameters:
minPoolSize- minPoolSizeinitialPoolSize- initialPoolSizemaxPoolSize- maxPoolSizeprefill- prefilluseStrictMin- useStrictMinflushStrategy- flushStrategy- Returns:
- this
- Throws:
Exception- exception
-
buildOther
public LegacyTxDataSourceImpl buildOther(String urlDelimiter, String urlSelectorStrategyClassName, String newConnectionSql, Boolean useJavaContext, String poolName, Boolean enabled, String jndiName, Boolean spy, Boolean useCcm, Boolean jta) build other properties- Parameters:
urlDelimiter- urlDelimiterurlSelectorStrategyClassName- urlSelectorStrategyClassNamenewConnectionSql- newConnectionSqluseJavaContext- useJavaContextpoolName- poolNameenabled- enabledjndiName- jndiNamespy- spyuseCcm- useCcmjta- jta- Returns:
- this
-
getConnectionUrl
Description copied from interface:NoTxDataSourceGet the connectionUrl.- Specified by:
getConnectionUrlin interfaceNoTxDataSource- Returns:
- the connectionUrl.
-
getDriverClass
Description copied from interface:NoTxDataSourceGet the driverClass.- Specified by:
getDriverClassin interfaceNoTxDataSource- Returns:
- the driverClass.
-
getConnectionProperties
Description copied from interface:NoTxDataSourceGet the connectionProperties.- Specified by:
getConnectionPropertiesin interfaceNoTxDataSource- Returns:
- the connectionProperties.
-
getJndiName
Description copied from interface:ConnectionFactoryGet the jndiName.- Specified by:
getJndiNamein interfaceConnectionFactory- Returns:
- the jndiName.
-
isUseJavaContext
Description copied from interface:DataSourceGet the useJavaContext.- Specified by:
isUseJavaContextin interfaceDataSource- Returns:
- the useJavaContext.
-
getUrlDelimiter
Description copied from interface:DataSourceGet the urlDelimiter.- Specified by:
getUrlDelimiterin interfaceDataSource- Returns:
- the urlDelimiter.
-
getUrlSelectorStrategyClassName
Description copied from interface:DataSourceGet the urlSelectorStrategyClassName.- Specified by:
getUrlSelectorStrategyClassNamein interfaceDataSource- Returns:
- the urlSelectorStrategyClassName.
-
getUserName
Description copied from interface:DataSourceGet the userName.- Specified by:
getUserNamein interfaceDataSource- Returns:
- the userName.
-
getPassword
Description copied from interface:DataSourceGet the password.- Specified by:
getPasswordin interfaceDataSource- Returns:
- the password.
-
getSecurityDomain
Description copied from interface:ConnectionFactoryget the security domain for pure security-domain security management- Specified by:
getSecurityDomainin interfaceConnectionFactory- Returns:
- the security-domain to use
-
getMinPoolSize
Description copied from interface:ConnectionFactoryGet the minPoolSize.- Specified by:
getMinPoolSizein interfaceConnectionFactory- Returns:
- the minPoolSize.
-
getMaxPoolSize
Description copied from interface:ConnectionFactoryGet the maxPoolSize.- Specified by:
getMaxPoolSizein interfaceConnectionFactory- Returns:
- the maxPoolSize.
-
getBlockingTimeoutMillis
Description copied from interface:ConnectionFactoryGet the blockingTimeoutMillis.- Specified by:
getBlockingTimeoutMillisin interfaceConnectionFactory- Returns:
- the blockingTimeoutMillis.
-
isBackgroundValidation
Description copied from interface:ConnectionFactoryGet the backgroundValidation.- Specified by:
isBackgroundValidationin interfaceConnectionFactory- Returns:
- the backgroundValidation.
-
getBackgroundValidationMillis
Description copied from interface:ConnectionFactoryGet the backgroundValidationMillis.- Specified by:
getBackgroundValidationMillisin interfaceConnectionFactory- Returns:
- the backgroundValidationMillis.
-
getIdleTimeoutMinutes
Description copied from interface:ConnectionFactoryGet the idleTimeoutMinutes.- Specified by:
getIdleTimeoutMinutesin interfaceConnectionFactory- Returns:
- the idleTimeoutMinutes.
-
getAllocationRetry
Description copied from interface:ConnectionFactoryGet the allocationRetryWaitMillis.- Specified by:
getAllocationRetryin interfaceConnectionFactory- Returns:
- the allocationRetryWaitMillis.
-
getAllocationRetryWaitMillis
Description copied from interface:ConnectionFactoryGet the allocationRetryWaitMillis.- Specified by:
getAllocationRetryWaitMillisin interfaceConnectionFactory- Returns:
- the allocationRetryWaitMillis.
-
isValidateOnMatch
Description copied from interface:DataSourceGet the validateOnMatch.- Specified by:
isValidateOnMatchin interfaceDataSource- Returns:
- the validateOnMatch.
-
getNewConnectionSql
Description copied from interface:DataSourceGet the newConnectionSql.- Specified by:
getNewConnectionSqlin interfaceDataSource- Returns:
- the newConnectionSql.
-
getCheckValidConnectionSql
Description copied from interface:DataSourceGet the checkValidConnectionSql.- Specified by:
getCheckValidConnectionSqlin interfaceDataSource- Returns:
- the checkValidConnectionSql.
-
getValidConnectionChecker
public org.jboss.jca.common.api.metadata.common.Extension getValidConnectionChecker()Description copied from interface:DataSourceGet the validConnectionChecker- Specified by:
getValidConnectionCheckerin interfaceDataSource- Returns:
- the validConnectionChecker
-
getExceptionSorter
public org.jboss.jca.common.api.metadata.common.Extension getExceptionSorter()Description copied from interface:DataSourceGet the exceptionSorter- Specified by:
getExceptionSorterin interfaceDataSource- Returns:
- the exceptionSorter
-
getStaleConnectionChecker
public org.jboss.jca.common.api.metadata.common.Extension getStaleConnectionChecker()Description copied from interface:DataSourceGet the staleConnectionChecker- Specified by:
getStaleConnectionCheckerin interfaceDataSource- Returns:
- the staleConnectionChecker
-
getTrackStatements
public org.jboss.jca.common.api.metadata.ds.Statement.TrackStatementsEnum getTrackStatements()Description copied from interface:DataSourceGet the trackStatements.- Specified by:
getTrackStatementsin interfaceDataSource- Returns:
- the trackStatements.
-
isPrefill
Description copied from interface:ConnectionFactoryGet the prefill.- Specified by:
isPrefillin interfaceConnectionFactory- Returns:
- the prefill.
-
isUseFastFail
Description copied from interface:ConnectionFactoryGet the useFastFail.- Specified by:
isUseFastFailin interfaceConnectionFactory- Returns:
- the useFastFail.
-
getPreparedStatementsCacheSize
Description copied from interface:DataSourceGet the preparedStatementsCacheSize.- Specified by:
getPreparedStatementsCacheSizein interfaceDataSource- Returns:
- the preparedStatementsCacheSize.
-
isSetTxQueryTimeout
Description copied from interface:DataSourceGet the setTxQuertTimeout.- Specified by:
isSetTxQueryTimeoutin interfaceDataSource- Returns:
- the setTxQuertTimeout.
-
getQueryTimeout
Description copied from interface:DataSourceGet the queryTimeout.- Specified by:
getQueryTimeoutin interfaceDataSource- Returns:
- the queryTimeout.
-
getUseTryLock
Description copied from interface:DataSourceGet the useTryLock.- Specified by:
getUseTryLockin interfaceDataSource- Returns:
- the useTryLock.
-
getTransactionIsolation
public org.jboss.jca.common.api.metadata.ds.TransactionIsolation getTransactionIsolation()Description copied from interface:LocalTxDataSourceGet the transactionIsolation.- Specified by:
getTransactionIsolationin interfaceLocalTxDataSource- Returns:
- the transactionIsolation.
-
isNoTxSeparatePools
public boolean isNoTxSeparatePools()Description copied from interface:LocalTxDataSourceisNoTxSeparatePools- Specified by:
isNoTxSeparatePoolsin interfaceLocalTxDataSource- Returns:
- nTxSeparatePools
-