public class LegacyXaDataSourceImp extends java.lang.Object implements XaDataSource
XaDataSource.Tag
Constructor and Description |
---|
LegacyXaDataSourceImp(java.lang.String xaDataSourceClass,
java.lang.String driver,
org.jboss.jca.common.api.metadata.ds.TransactionIsolation transactionIsolation,
java.util.Map<java.lang.String,java.lang.String> xaDataSourceProperty)
create a LegacyXaDataSourceImp
|
Modifier and Type | Method and Description |
---|---|
LegacyXaDataSourceImp |
buildCommonPool(java.lang.Integer minPoolSize,
java.lang.Integer initialPoolSize,
java.lang.Integer maxPoolSize,
java.lang.Boolean prefill,
java.lang.Boolean useStrictMin,
org.jboss.jca.common.api.metadata.common.FlushStrategy flushStrategy,
java.lang.Boolean isSameRmOverride,
java.lang.Boolean interleaving,
java.lang.Boolean padXid,
java.lang.Boolean wrapXaResource,
java.lang.Boolean noTxSeparatePool)
build pool part
|
LegacyXaDataSourceImp |
buildDsSecurity(java.lang.String userName,
java.lang.String password,
java.lang.String securityDomain,
org.jboss.jca.common.api.metadata.common.Extension reauthPlugin)
build security part
|
LegacyXaDataSourceImp |
buildOther(java.lang.String urlDelimiter,
java.lang.String urlSelectorStrategyClassName,
java.lang.String newConnectionSql,
java.lang.Boolean useJavaContext,
java.lang.String poolName,
java.lang.Boolean enabled,
java.lang.String jndiName,
java.lang.Boolean spy,
java.lang.Boolean useCcm,
java.lang.Boolean jta)
build other properties
|
LegacyXaDataSourceImp |
buildRecovery(java.lang.String recoveryUsername,
java.lang.String recoveryPassword,
java.lang.Boolean noRecovery)
build recovery part
|
LegacyXaDataSourceImp |
buildStatement(java.lang.Boolean sharePreparedStatements,
java.lang.Long preparedStatementsCacheSize,
org.jboss.jca.common.api.metadata.ds.Statement.TrackStatementsEnum trackStatements)
build statement part
|
LegacyXaDataSourceImp |
buildTimeOut(java.lang.Long blockingTimeoutMillis,
java.lang.Long idleTimeoutMinutes,
java.lang.Integer allocationRetry,
java.lang.Long allocationRetryWaitMillis,
java.lang.Integer xaResourceTimeout,
java.lang.Boolean setTxQueryTimeout,
java.lang.Long queryTimeout,
java.lang.Long useTryLock)
build timeout part
|
LegacyXaDataSourceImp |
buildValidation(java.lang.Boolean backgroundValidation,
java.lang.Long backgroundValidationMillis,
java.lang.Boolean useFastFail,
org.jboss.jca.common.api.metadata.common.Extension validConnectionChecker,
java.lang.String checkValidConnectionSql,
java.lang.Boolean validateOnMatch,
org.jboss.jca.common.api.metadata.common.Extension staleConnectionChecker,
org.jboss.jca.common.api.metadata.common.Extension exceptionSorter)
build validation part
|
void |
buildXaDataSourceImpl()
buildXaDataSourceImpl
|
java.lang.Integer |
getAllocationRetry()
Get the allocationRetryWaitMillis.
|
java.lang.Long |
getAllocationRetryWaitMillis()
Get the allocationRetryWaitMillis.
|
java.lang.Long |
getBackgroundValidationMillis()
Get the backgroundValidationMillis.
|
java.lang.Long |
getBlockingTimeoutMillis()
Get the blockingTimeoutMillis.
|
java.lang.String |
getCheckValidConnectionSql()
Get the checkValidConnectionSql.
|
org.jboss.jca.common.api.metadata.common.Extension |
getExceptionSorter()
Get the exceptionSorter
|
java.lang.Long |
getIdleTimeoutMinutes()
Get the idleTimeoutMinutes.
|
java.lang.String |
getJndiName()
Get the jndiName.
|
java.lang.Boolean |
getJta()
getJta
|
java.lang.Integer |
getMaxPoolSize()
Get the maxPoolSize.
|
java.lang.Integer |
getMinPoolSize()
Get the minPoolSize.
|
java.lang.String |
getNewConnectionSql()
Get the newConnectionSql.
|
java.lang.String |
getPassword()
Get the password.
|
java.lang.Long |
getPreparedStatementsCacheSize()
Get the preparedStatementsCacheSize.
|
java.lang.Long |
getQueryTimeout()
Get the queryTimeout.
|
java.lang.String |
getSecurityDomain()
get the security domain for pure security-domain security management
|
org.jboss.jca.common.api.metadata.common.Extension |
getStaleConnectionChecker()
Get the staleConnectionChecker
|
org.jboss.jca.common.api.metadata.ds.Statement.TrackStatementsEnum |
getTrackStatements()
Get the trackStatements.
|
java.lang.String |
getUrlDelimiter()
Get the urlDelimiter.
|
java.lang.String |
getUrlSelectorStrategyClassName()
Get the urlSelectorStrategyClassName.
|
java.lang.String |
getUserName()
Get the userName.
|
java.lang.Long |
getUseTryLock()
Get the useTryLock.
|
org.jboss.jca.common.api.metadata.common.Extension |
getValidConnectionChecker()
Get the validConnectionChecker
|
java.lang.String |
getXaDataSourceClass()
Get the xaDataSourceClass.
|
java.util.Map<java.lang.String,java.lang.String> |
getXaDataSourceProperty()
Get the xaDataSourceProperty.
|
java.lang.Integer |
getXaResourceTimeout()
Get the xaResourceTimeout.
|
java.lang.Boolean |
isBackgroundValidation()
Get the backgroundValidation.
|
java.lang.Boolean |
isInterleaving()
Get the interleaving.
|
java.lang.Boolean |
isNoTxSeparatePools()
Get the noTxSeparatePools.
|
java.lang.Boolean |
isPadXid()
Get the padXid.
|
java.lang.Boolean |
isPrefill()
Get the prefill.
|
java.lang.Boolean |
isSameRmOverride()
Get the isSameRmOverride.
|
java.lang.Boolean |
isSetTxQueryTimeout()
Get the setTxQuertTimeout.
|
java.lang.Boolean |
isSharePreparedStatements()
Get the sharePreparedStatements.
|
java.lang.Boolean |
isTrackConnectionByTx()
Get the TrackConnectionByTx.
|
java.lang.Boolean |
isUseFastFail()
Get the useFastFail.
|
java.lang.Boolean |
isUseJavaContext()
Get the useJavaContext.
|
java.lang.Boolean |
isValidateOnMatch()
Get the validateOnMatch.
|
java.lang.Boolean |
isWrapXaResource()
Get the wrapXaResource.
|
void |
setJta(java.lang.Boolean jta)
setJta
|
java.lang.String |
toString() |
public LegacyXaDataSourceImp(java.lang.String xaDataSourceClass, java.lang.String driver, org.jboss.jca.common.api.metadata.ds.TransactionIsolation transactionIsolation, java.util.Map<java.lang.String,java.lang.String> xaDataSourceProperty)
xaDataSourceClass
- xaDataSourceClassdriver
- drivertransactionIsolation
- transactionIsolationxaDataSourceProperty
- xaDataSourcePropertypublic void buildXaDataSourceImpl() throws java.lang.Exception
java.lang.Exception
- exceptionpublic java.lang.String toString()
toString
in class java.lang.Object
public LegacyXaDataSourceImp buildTimeOut(java.lang.Long blockingTimeoutMillis, java.lang.Long idleTimeoutMinutes, java.lang.Integer allocationRetry, java.lang.Long allocationRetryWaitMillis, java.lang.Integer xaResourceTimeout, java.lang.Boolean setTxQueryTimeout, java.lang.Long queryTimeout, java.lang.Long useTryLock) throws java.lang.Exception
blockingTimeoutMillis
- blockingTimeoutMillisidleTimeoutMinutes
- idleTimeoutMinutesallocationRetry
- allocationRetryallocationRetryWaitMillis
- allocationRetryWaitMillisxaResourceTimeout
- xaResourceTimeoutsetTxQueryTimeout
- setTxQueryTimeoutqueryTimeout
- queryTimeoutuseTryLock
- useTryLockjava.lang.Exception
- exceptionpublic LegacyXaDataSourceImp buildDsSecurity(java.lang.String userName, java.lang.String password, java.lang.String securityDomain, org.jboss.jca.common.api.metadata.common.Extension reauthPlugin) throws java.lang.Exception
userName
- userNamepassword
- passwordsecurityDomain
- securityDomainreauthPlugin
- reauthPluginjava.lang.Exception
- exceptionpublic LegacyXaDataSourceImp buildStatement(java.lang.Boolean sharePreparedStatements, java.lang.Long preparedStatementsCacheSize, org.jboss.jca.common.api.metadata.ds.Statement.TrackStatementsEnum trackStatements) throws java.lang.Exception
sharePreparedStatements
- sharePreparedStatementspreparedStatementsCacheSize
- preparedStatementsCacheSizetrackStatements
- trackStatementsjava.lang.Exception
- exceptionpublic LegacyXaDataSourceImp buildValidation(java.lang.Boolean backgroundValidation, java.lang.Long backgroundValidationMillis, java.lang.Boolean useFastFail, org.jboss.jca.common.api.metadata.common.Extension validConnectionChecker, java.lang.String checkValidConnectionSql, java.lang.Boolean validateOnMatch, org.jboss.jca.common.api.metadata.common.Extension staleConnectionChecker, org.jboss.jca.common.api.metadata.common.Extension exceptionSorter) throws java.lang.Exception
backgroundValidation
- backgroundValidationbackgroundValidationMillis
- backgroundValidationMillisuseFastFail
- useFastFailvalidConnectionChecker
- validConnectionCheckercheckValidConnectionSql
- checkValidConnectionSqlvalidateOnMatch
- validateOnMatchstaleConnectionChecker
- staleConnectionCheckerexceptionSorter
- exceptionSorterjava.lang.Exception
- exceptionpublic LegacyXaDataSourceImp buildCommonPool(java.lang.Integer minPoolSize, java.lang.Integer initialPoolSize, java.lang.Integer maxPoolSize, java.lang.Boolean prefill, java.lang.Boolean useStrictMin, org.jboss.jca.common.api.metadata.common.FlushStrategy flushStrategy, java.lang.Boolean isSameRmOverride, java.lang.Boolean interleaving, java.lang.Boolean padXid, java.lang.Boolean wrapXaResource, java.lang.Boolean noTxSeparatePool) throws java.lang.Exception
minPoolSize
- minPoolSizeinitialPoolSize
- initialPoolSizemaxPoolSize
- maxPoolSizeprefill
- prefilluseStrictMin
- useStrictMinflushStrategy
- flushStrategyisSameRmOverride
- isSameRmOverrideinterleaving
- interleavingpadXid
- padXidwrapXaResource
- wrapXaResourcenoTxSeparatePool
- noTxSeparatePooljava.lang.Exception
- exceptionpublic LegacyXaDataSourceImp buildRecovery(java.lang.String recoveryUsername, java.lang.String recoveryPassword, java.lang.Boolean noRecovery) throws java.lang.Exception
recoveryUsername
- recoveryUsernamerecoveryPassword
- recoveryPasswordnoRecovery
- noRecoveryjava.lang.Exception
- exceptionpublic LegacyXaDataSourceImp buildOther(java.lang.String urlDelimiter, java.lang.String urlSelectorStrategyClassName, java.lang.String newConnectionSql, java.lang.Boolean useJavaContext, java.lang.String poolName, java.lang.Boolean enabled, java.lang.String jndiName, java.lang.Boolean spy, java.lang.Boolean useCcm, java.lang.Boolean jta)
urlDelimiter
- urlDelimiterurlSelectorStrategyClassName
- urlSelectorStrategyClassNamenewConnectionSql
- newConnectionSqluseJavaContext
- useJavaContextpoolName
- poolNameenabled
- enabledjndiName
- jndiNamespy
- spyuseCcm
- useCcmjta
- jtapublic java.lang.String getJndiName()
ConnectionFactory
getJndiName
in interface ConnectionFactory
public java.lang.Boolean isUseJavaContext()
DataSource
isUseJavaContext
in interface DataSource
public java.lang.String getUrlDelimiter()
DataSource
getUrlDelimiter
in interface DataSource
public java.lang.String getUrlSelectorStrategyClassName()
DataSource
getUrlSelectorStrategyClassName
in interface DataSource
public java.lang.String getUserName()
DataSource
getUserName
in interface DataSource
public java.lang.String getPassword()
DataSource
getPassword
in interface DataSource
public java.lang.String getSecurityDomain()
ConnectionFactory
getSecurityDomain
in interface ConnectionFactory
public java.lang.Integer getMinPoolSize()
ConnectionFactory
getMinPoolSize
in interface ConnectionFactory
public java.lang.Integer getMaxPoolSize()
ConnectionFactory
getMaxPoolSize
in interface ConnectionFactory
public java.lang.Long getBlockingTimeoutMillis()
ConnectionFactory
getBlockingTimeoutMillis
in interface ConnectionFactory
public java.lang.Boolean isBackgroundValidation()
ConnectionFactory
isBackgroundValidation
in interface ConnectionFactory
public java.lang.Long getBackgroundValidationMillis()
ConnectionFactory
getBackgroundValidationMillis
in interface ConnectionFactory
public java.lang.Long getIdleTimeoutMinutes()
ConnectionFactory
getIdleTimeoutMinutes
in interface ConnectionFactory
public java.lang.Integer getAllocationRetry()
ConnectionFactory
getAllocationRetry
in interface ConnectionFactory
public java.lang.Long getAllocationRetryWaitMillis()
ConnectionFactory
getAllocationRetryWaitMillis
in interface ConnectionFactory
public java.lang.Boolean isValidateOnMatch()
DataSource
isValidateOnMatch
in interface DataSource
public java.lang.String getNewConnectionSql()
DataSource
getNewConnectionSql
in interface DataSource
public java.lang.String getCheckValidConnectionSql()
DataSource
getCheckValidConnectionSql
in interface DataSource
public org.jboss.jca.common.api.metadata.common.Extension getValidConnectionChecker()
DataSource
getValidConnectionChecker
in interface DataSource
public org.jboss.jca.common.api.metadata.common.Extension getExceptionSorter()
DataSource
getExceptionSorter
in interface DataSource
public org.jboss.jca.common.api.metadata.common.Extension getStaleConnectionChecker()
DataSource
getStaleConnectionChecker
in interface DataSource
public org.jboss.jca.common.api.metadata.ds.Statement.TrackStatementsEnum getTrackStatements()
DataSource
getTrackStatements
in interface DataSource
public java.lang.Boolean isPrefill()
ConnectionFactory
isPrefill
in interface ConnectionFactory
public java.lang.Boolean isUseFastFail()
ConnectionFactory
isUseFastFail
in interface ConnectionFactory
public java.lang.Long getPreparedStatementsCacheSize()
DataSource
getPreparedStatementsCacheSize
in interface DataSource
public java.lang.Boolean isSharePreparedStatements()
DataSource
isSharePreparedStatements
in interface DataSource
public java.lang.Boolean isSetTxQueryTimeout()
DataSource
isSetTxQueryTimeout
in interface DataSource
public java.lang.Long getQueryTimeout()
DataSource
getQueryTimeout
in interface DataSource
public java.lang.Long getUseTryLock()
DataSource
getUseTryLock
in interface DataSource
public java.lang.Boolean isNoTxSeparatePools()
CommonXa
isNoTxSeparatePools
in interface CommonXa
public java.lang.Boolean isTrackConnectionByTx()
CommonXa
isTrackConnectionByTx
in interface CommonXa
public java.lang.Integer getXaResourceTimeout()
CommonXa
getXaResourceTimeout
in interface CommonXa
public java.lang.String getXaDataSourceClass()
XaDataSource
getXaDataSourceClass
in interface XaDataSource
public java.util.Map<java.lang.String,java.lang.String> getXaDataSourceProperty()
XaDataSource
getXaDataSourceProperty
in interface XaDataSource
public java.lang.Boolean isSameRmOverride()
XaDataSource
isSameRmOverride
in interface XaDataSource
public java.lang.Boolean isInterleaving()
XaDataSource
isInterleaving
in interface XaDataSource
public java.lang.Boolean isPadXid()
XaDataSource
isPadXid
in interface XaDataSource
public java.lang.Boolean isWrapXaResource()
XaDataSource
isWrapXaResource
in interface XaDataSource
public void setJta(java.lang.Boolean jta)
jta
- jtapublic java.lang.Boolean getJta()
Copyright © 2014 IronJacamar (http://www.ironjacamar.org)