Package org.jboss.jca.as.converters
Class LegacyXaDataSourceImp
- java.lang.Object
-
- org.jboss.jca.as.converters.LegacyXaDataSourceImp
-
- All Implemented Interfaces:
CommonXa,ConnectionFactory,DataSource,XaDataSource
public class LegacyXaDataSourceImp extends Object implements 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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LegacyXaDataSourceImpbuildCommonPool(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 partLegacyXaDataSourceImpbuildDsSecurity(String userName, String password, String securityDomain, org.jboss.jca.common.api.metadata.common.Extension reauthPlugin)build security partLegacyXaDataSourceImpbuildOther(String urlDelimiter, String urlSelectorStrategyClassName, String newConnectionSql, Boolean useJavaContext, String poolName, Boolean enabled, String jndiName, Boolean spy, Boolean useCcm, Boolean jta)build other propertiesLegacyXaDataSourceImpbuildRecovery(String recoveryUsername, String recoveryPassword, Boolean noRecovery)build recovery partLegacyXaDataSourceImpbuildStatement(Boolean sharePreparedStatements, Long preparedStatementsCacheSize, org.jboss.jca.common.api.metadata.ds.Statement.TrackStatementsEnum trackStatements)build statement partLegacyXaDataSourceImpbuildTimeOut(Long blockingTimeoutMillis, Long idleTimeoutMinutes, Integer allocationRetry, Long allocationRetryWaitMillis, Integer xaResourceTimeout, Boolean setTxQueryTimeout, Long queryTimeout, Long useTryLock)build timeout partLegacyXaDataSourceImpbuildValidation(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 partvoidbuildXaDataSourceImpl()buildXaDataSourceImplIntegergetAllocationRetry()Get the allocationRetryWaitMillis.LonggetAllocationRetryWaitMillis()Get the allocationRetryWaitMillis.LonggetBackgroundValidationMillis()Get the backgroundValidationMillis.LonggetBlockingTimeoutMillis()Get the blockingTimeoutMillis.StringgetCheckValidConnectionSql()Get the checkValidConnectionSql.org.jboss.jca.common.api.metadata.common.ExtensiongetExceptionSorter()Get the exceptionSorterLonggetIdleTimeoutMinutes()Get the idleTimeoutMinutes.StringgetJndiName()Get the jndiName.BooleangetJta()getJtaIntegergetMaxPoolSize()Get the maxPoolSize.IntegergetMinPoolSize()Get the minPoolSize.StringgetNewConnectionSql()Get the newConnectionSql.StringgetPassword()Get the password.LonggetPreparedStatementsCacheSize()Get the preparedStatementsCacheSize.LonggetQueryTimeout()Get the queryTimeout.StringgetSecurityDomain()get the security domain for pure security-domain security managementorg.jboss.jca.common.api.metadata.common.ExtensiongetStaleConnectionChecker()Get the staleConnectionCheckerorg.jboss.jca.common.api.metadata.ds.Statement.TrackStatementsEnumgetTrackStatements()Get the trackStatements.StringgetUrlDelimiter()Get the urlDelimiter.StringgetUrlSelectorStrategyClassName()Get the urlSelectorStrategyClassName.StringgetUserName()Get the userName.LonggetUseTryLock()Get the useTryLock.org.jboss.jca.common.api.metadata.common.ExtensiongetValidConnectionChecker()Get the validConnectionCheckerStringgetXaDataSourceClass()Get the xaDataSourceClass.Map<String,String>getXaDataSourceProperty()Get the xaDataSourceProperty.IntegergetXaResourceTimeout()Get the xaResourceTimeout.BooleanisBackgroundValidation()Get the backgroundValidation.BooleanisInterleaving()Get the interleaving.BooleanisNoTxSeparatePools()Get the noTxSeparatePools.BooleanisPadXid()Get the padXid.BooleanisPrefill()Get the prefill.BooleanisSameRmOverride()Get the isSameRmOverride.BooleanisSetTxQueryTimeout()Get the setTxQuertTimeout.BooleanisSharePreparedStatements()Get the sharePreparedStatements.BooleanisTrackConnectionByTx()Get the TrackConnectionByTx.BooleanisUseFastFail()Get the useFastFail.BooleanisUseJavaContext()Get the useJavaContext.BooleanisValidateOnMatch()Get the validateOnMatch.BooleanisWrapXaResource()Get the wrapXaResource.voidsetJta(Boolean jta)setJtaStringtoString()
-
-
-
Constructor Detail
-
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 Detail
-
buildXaDataSourceImpl
public void buildXaDataSourceImpl() throws ExceptionbuildXaDataSourceImpl- Throws:
Exception- exception
-
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
public String getJndiName()
Description copied from interface:ConnectionFactoryGet the jndiName.- Specified by:
getJndiNamein interfaceConnectionFactory- Returns:
- the jndiName.
-
isUseJavaContext
public Boolean isUseJavaContext()
Description copied from interface:DataSourceGet the useJavaContext.- Specified by:
isUseJavaContextin interfaceDataSource- Returns:
- the useJavaContext.
-
getUrlDelimiter
public String getUrlDelimiter()
Description copied from interface:DataSourceGet the urlDelimiter.- Specified by:
getUrlDelimiterin interfaceDataSource- Returns:
- the urlDelimiter.
-
getUrlSelectorStrategyClassName
public String getUrlSelectorStrategyClassName()
Description copied from interface:DataSourceGet the urlSelectorStrategyClassName.- Specified by:
getUrlSelectorStrategyClassNamein interfaceDataSource- Returns:
- the urlSelectorStrategyClassName.
-
getUserName
public String getUserName()
Description copied from interface:DataSourceGet the userName.- Specified by:
getUserNamein interfaceDataSource- Returns:
- the userName.
-
getPassword
public String getPassword()
Description copied from interface:DataSourceGet the password.- Specified by:
getPasswordin interfaceDataSource- Returns:
- the password.
-
getSecurityDomain
public String 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
public Integer getMinPoolSize()
Description copied from interface:ConnectionFactoryGet the minPoolSize.- Specified by:
getMinPoolSizein interfaceConnectionFactory- Returns:
- the minPoolSize.
-
getMaxPoolSize
public Integer getMaxPoolSize()
Description copied from interface:ConnectionFactoryGet the maxPoolSize.- Specified by:
getMaxPoolSizein interfaceConnectionFactory- Returns:
- the maxPoolSize.
-
getBlockingTimeoutMillis
public Long getBlockingTimeoutMillis()
Description copied from interface:ConnectionFactoryGet the blockingTimeoutMillis.- Specified by:
getBlockingTimeoutMillisin interfaceConnectionFactory- Returns:
- the blockingTimeoutMillis.
-
isBackgroundValidation
public Boolean isBackgroundValidation()
Description copied from interface:ConnectionFactoryGet the backgroundValidation.- Specified by:
isBackgroundValidationin interfaceConnectionFactory- Returns:
- the backgroundValidation.
-
getBackgroundValidationMillis
public Long getBackgroundValidationMillis()
Description copied from interface:ConnectionFactoryGet the backgroundValidationMillis.- Specified by:
getBackgroundValidationMillisin interfaceConnectionFactory- Returns:
- the backgroundValidationMillis.
-
getIdleTimeoutMinutes
public Long getIdleTimeoutMinutes()
Description copied from interface:ConnectionFactoryGet the idleTimeoutMinutes.- Specified by:
getIdleTimeoutMinutesin interfaceConnectionFactory- Returns:
- the idleTimeoutMinutes.
-
getAllocationRetry
public Integer getAllocationRetry()
Description copied from interface:ConnectionFactoryGet the allocationRetryWaitMillis.- Specified by:
getAllocationRetryin interfaceConnectionFactory- Returns:
- the allocationRetryWaitMillis.
-
getAllocationRetryWaitMillis
public Long getAllocationRetryWaitMillis()
Description copied from interface:ConnectionFactoryGet the allocationRetryWaitMillis.- Specified by:
getAllocationRetryWaitMillisin interfaceConnectionFactory- Returns:
- the allocationRetryWaitMillis.
-
isValidateOnMatch
public Boolean isValidateOnMatch()
Description copied from interface:DataSourceGet the validateOnMatch.- Specified by:
isValidateOnMatchin interfaceDataSource- Returns:
- the validateOnMatch.
-
getNewConnectionSql
public String getNewConnectionSql()
Description copied from interface:DataSourceGet the newConnectionSql.- Specified by:
getNewConnectionSqlin interfaceDataSource- Returns:
- the newConnectionSql.
-
getCheckValidConnectionSql
public String 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
public Boolean isPrefill()
Description copied from interface:ConnectionFactoryGet the prefill.- Specified by:
isPrefillin interfaceConnectionFactory- Returns:
- the prefill.
-
isUseFastFail
public Boolean isUseFastFail()
Description copied from interface:ConnectionFactoryGet the useFastFail.- Specified by:
isUseFastFailin interfaceConnectionFactory- Returns:
- the useFastFail.
-
getPreparedStatementsCacheSize
public Long getPreparedStatementsCacheSize()
Description copied from interface:DataSourceGet the preparedStatementsCacheSize.- Specified by:
getPreparedStatementsCacheSizein interfaceDataSource- Returns:
- the preparedStatementsCacheSize.
-
isSharePreparedStatements
public Boolean isSharePreparedStatements()
Description copied from interface:DataSourceGet the sharePreparedStatements.- Specified by:
isSharePreparedStatementsin interfaceDataSource- Returns:
- the sharePreparedStatements.
-
isSetTxQueryTimeout
public Boolean isSetTxQueryTimeout()
Description copied from interface:DataSourceGet the setTxQuertTimeout.- Specified by:
isSetTxQueryTimeoutin interfaceDataSource- Returns:
- the setTxQuertTimeout.
-
getQueryTimeout
public Long getQueryTimeout()
Description copied from interface:DataSourceGet the queryTimeout.- Specified by:
getQueryTimeoutin interfaceDataSource- Returns:
- the queryTimeout.
-
getUseTryLock
public Long getUseTryLock()
Description copied from interface:DataSourceGet the useTryLock.- Specified by:
getUseTryLockin interfaceDataSource- Returns:
- the useTryLock.
-
isNoTxSeparatePools
public Boolean isNoTxSeparatePools()
Description copied from interface:CommonXaGet the noTxSeparatePools.- Specified by:
isNoTxSeparatePoolsin interfaceCommonXa- Returns:
- the noTxSeparatePools.
-
isTrackConnectionByTx
public Boolean isTrackConnectionByTx()
Description copied from interface:CommonXaGet the TrackConnectionByTx.- Specified by:
isTrackConnectionByTxin interfaceCommonXa- Returns:
- the TrackConnectionByTx.
-
getXaResourceTimeout
public Integer getXaResourceTimeout()
Description copied from interface:CommonXaGet the xaResourceTimeout.- Specified by:
getXaResourceTimeoutin interfaceCommonXa- Returns:
- the xaResourceTimeout.
-
getXaDataSourceClass
public String getXaDataSourceClass()
Description copied from interface:XaDataSourceGet the xaDataSourceClass.- Specified by:
getXaDataSourceClassin interfaceXaDataSource- Returns:
- the xaDataSourceClass.
-
getXaDataSourceProperty
public Map<String,String> getXaDataSourceProperty()
Description copied from interface:XaDataSourceGet the xaDataSourceProperty.- Specified by:
getXaDataSourcePropertyin interfaceXaDataSource- Returns:
- the xaDataSourceProperty.
-
isSameRmOverride
public Boolean isSameRmOverride()
Description copied from interface:XaDataSourceGet the isSameRmOverride.- Specified by:
isSameRmOverridein interfaceXaDataSource- Returns:
- the isSameRmOverride.
-
isInterleaving
public Boolean isInterleaving()
Description copied from interface:XaDataSourceGet the interleaving.- Specified by:
isInterleavingin interfaceXaDataSource- Returns:
- the interleaving.
-
isPadXid
public Boolean isPadXid()
Description copied from interface:XaDataSourceGet the padXid.- Specified by:
isPadXidin interfaceXaDataSource- Returns:
- the padXid.
-
isWrapXaResource
public Boolean isWrapXaResource()
Description copied from interface:XaDataSourceGet the wrapXaResource.- Specified by:
isWrapXaResourcein interfaceXaDataSource- Returns:
- the wrapXaResource.
-
setJta
public void setJta(Boolean jta)
setJta- Parameters:
jta- jta
-
getJta
public Boolean getJta()
getJta- Returns:
- jta Boolean
-
-