Package org.jboss.jca.as.converters
Class LegacyXaDataSourceImp
java.lang.Object
org.jboss.jca.as.converters.LegacyXaDataSourceImp
- All Implemented Interfaces:
CommonXa,ConnectionFactory,DataSource,XaDataSource
A XaDataSource impl.
- Version:
- $Revision: $
- Author:
- Jeff Zhang
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.jca.as.converters.XaDataSource
XaDataSource.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, Boolean isSameRmOverride, Boolean interleaving, Boolean padXid, Boolean wrapXaResource, Boolean noTxSeparatePool) build pool partbuildDsSecurity(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 propertiesbuildRecovery(String recoveryUsername, String recoveryPassword, Boolean noRecovery) build recovery partbuildStatement(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 partvoidbuildXaDataSourceImplGet the allocationRetryWaitMillis.Get the allocationRetryWaitMillis.Get the backgroundValidationMillis.Get the blockingTimeoutMillis.Get the checkValidConnectionSql.org.jboss.jca.common.api.metadata.common.ExtensionGet the exceptionSorterGet the idleTimeoutMinutes.Get the jndiName.getJta()getJtaGet 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.Get the urlDelimiter.Get the urlSelectorStrategyClassName.Get the userName.Get the useTryLock.org.jboss.jca.common.api.metadata.common.ExtensionGet the validConnectionCheckerGet the xaDataSourceClass.Get the xaDataSourceProperty.Get the xaResourceTimeout.Get the backgroundValidation.Get the interleaving.Get the noTxSeparatePools.isPadXid()Get the padXid.Get the prefill.Get the isSameRmOverride.Get the setTxQuertTimeout.Get the sharePreparedStatements.Get the TrackConnectionByTx.Get the useFastFail.Get the useJavaContext.Get the validateOnMatch.Get the wrapXaResource.voidsetJtatoString()
-
Constructor Details
-
LegacyXaDataSourceImp
public LegacyXaDataSourceImp(String xaDataSourceClass, String driver, org.jboss.jca.common.api.metadata.ds.TransactionIsolation transactionIsolation, Map<String, String> xaDataSourceProperty) create a LegacyXaDataSourceImp- Parameters:
xaDataSourceClass- xaDataSourceClassdriver- drivertransactionIsolation- transactionIsolationxaDataSourceProperty- xaDataSourceProperty
-
-
Method Details
-
buildXaDataSourceImpl
buildXaDataSourceImpl- Throws:
Exception- exception
-
toString
-
buildTimeOut
public LegacyXaDataSourceImp 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 LegacyXaDataSourceImp 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 LegacyXaDataSourceImp 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 LegacyXaDataSourceImp 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 LegacyXaDataSourceImp buildCommonPool(Integer minPoolSize, Integer initialPoolSize, Integer maxPoolSize, Boolean prefill, Boolean useStrictMin, org.jboss.jca.common.api.metadata.common.FlushStrategy flushStrategy, Boolean isSameRmOverride, Boolean interleaving, Boolean padXid, Boolean wrapXaResource, Boolean noTxSeparatePool) throws Exception build pool part- Parameters:
minPoolSize- minPoolSizeinitialPoolSize- initialPoolSizemaxPoolSize- maxPoolSizeprefill- prefilluseStrictMin- useStrictMinflushStrategy- flushStrategyisSameRmOverride- isSameRmOverrideinterleaving- interleavingpadXid- padXidwrapXaResource- wrapXaResourcenoTxSeparatePool- noTxSeparatePool- Returns:
- this
- Throws:
Exception- exception
-
buildRecovery
public LegacyXaDataSourceImp buildRecovery(String recoveryUsername, String recoveryPassword, Boolean noRecovery) throws Exception build recovery part- Parameters:
recoveryUsername- recoveryUsernamerecoveryPassword- recoveryPasswordnoRecovery- noRecovery- Returns:
- this
- Throws:
Exception- exception
-
buildOther
public LegacyXaDataSourceImp 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
-
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.
-
isNoTxSeparatePools
Description copied from interface:CommonXaGet the noTxSeparatePools.- Specified by:
isNoTxSeparatePoolsin interfaceCommonXa- Returns:
- the noTxSeparatePools.
-
isTrackConnectionByTx
Description copied from interface:CommonXaGet the TrackConnectionByTx.- Specified by:
isTrackConnectionByTxin interfaceCommonXa- Returns:
- the TrackConnectionByTx.
-
getXaResourceTimeout
Description copied from interface:CommonXaGet the xaResourceTimeout.- Specified by:
getXaResourceTimeoutin interfaceCommonXa- Returns:
- the xaResourceTimeout.
-
getXaDataSourceClass
Description copied from interface:XaDataSourceGet the xaDataSourceClass.- Specified by:
getXaDataSourceClassin interfaceXaDataSource- Returns:
- the xaDataSourceClass.
-
getXaDataSourceProperty
Description copied from interface:XaDataSourceGet the xaDataSourceProperty.- Specified by:
getXaDataSourcePropertyin interfaceXaDataSource- Returns:
- the xaDataSourceProperty.
-
isSameRmOverride
Description copied from interface:XaDataSourceGet the isSameRmOverride.- Specified by:
isSameRmOverridein interfaceXaDataSource- Returns:
- the isSameRmOverride.
-
isInterleaving
Description copied from interface:XaDataSourceGet the interleaving.- Specified by:
isInterleavingin interfaceXaDataSource- Returns:
- the interleaving.
-
isPadXid
Description copied from interface:XaDataSourceGet the padXid.- Specified by:
isPadXidin interfaceXaDataSource- Returns:
- the padXid.
-
isWrapXaResource
Description copied from interface:XaDataSourceGet the wrapXaResource.- Specified by:
isWrapXaResourcein interfaceXaDataSource- Returns:
- the wrapXaResource.
-
setJta
setJta- Parameters:
jta- jta
-
getJta
getJta- Returns:
- jta Boolean
-