public class LegacyTxDataSourceImpl extends java.lang.Object implements LocalTxDataSource
LocalTxDataSource.Tag
Constructor and Description |
---|
LegacyTxDataSourceImpl(java.lang.String connectionUrl,
java.lang.String driverClass,
java.lang.String dataSourceClass,
java.lang.String driver,
org.jboss.jca.common.api.metadata.ds.TransactionIsolation transactionIsolation,
java.util.Map<java.lang.String,java.lang.String> connectionProperties)
create a LegacyTxDataSourceImpl
|
Modifier and Type | Method and Description |
---|---|
LegacyTxDataSourceImpl |
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)
build pool part
|
void |
buildDataSourceImpl()
buildDataSourceImpl
|
LegacyTxDataSourceImpl |
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
|
LegacyTxDataSourceImpl |
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
|
LegacyTxDataSourceImpl |
buildStatement(java.lang.Boolean sharePreparedStatements,
java.lang.Long preparedStatementsCacheSize,
org.jboss.jca.common.api.metadata.ds.Statement.TrackStatementsEnum trackStatements)
build statement part
|
LegacyTxDataSourceImpl |
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
|
LegacyTxDataSourceImpl |
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
|
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.
|
java.util.Map<java.lang.String,java.lang.String> |
getConnectionProperties()
Get the connectionProperties.
|
java.lang.String |
getConnectionUrl()
Get the connectionUrl.
|
java.lang.String |
getDriverClass()
Get the driverClass.
|
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.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.
|
org.jboss.jca.common.api.metadata.ds.TransactionIsolation |
getTransactionIsolation()
Get the transactionIsolation.
|
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.Boolean |
isBackgroundValidation()
Get the backgroundValidation.
|
boolean |
isNoTxSeparatePools()
isNoTxSeparatePools
|
java.lang.Boolean |
isPrefill()
Get the prefill.
|
java.lang.Boolean |
isSetTxQueryTimeout()
Get the setTxQuertTimeout.
|
java.lang.Boolean |
isSharePreparedStatements()
Get the sharePreparedStatements.
|
java.lang.Boolean |
isUseFastFail()
Get the useFastFail.
|
java.lang.Boolean |
isUseJavaContext()
Get the useJavaContext.
|
java.lang.Boolean |
isValidateOnMatch()
Get the validateOnMatch.
|
java.lang.String |
toString() |
public LegacyTxDataSourceImpl(java.lang.String connectionUrl, java.lang.String driverClass, java.lang.String dataSourceClass, java.lang.String driver, org.jboss.jca.common.api.metadata.ds.TransactionIsolation transactionIsolation, java.util.Map<java.lang.String,java.lang.String> connectionProperties)
connectionUrl
- connectionUrldriverClass
- driverClassdataSourceClass
- dataSourceClassdriver
- drivertransactionIsolation
- transactionIsolationconnectionProperties
- connectionPropertiespublic void buildDataSourceImpl() throws java.lang.Exception
java.lang.Exception
- exceptionpublic java.lang.String toString()
toString
in class java.lang.Object
public LegacyTxDataSourceImpl 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 LegacyTxDataSourceImpl 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 LegacyTxDataSourceImpl 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 LegacyTxDataSourceImpl 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 LegacyTxDataSourceImpl 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) throws java.lang.Exception
minPoolSize
- minPoolSizeinitialPoolSize
- initialPoolSizemaxPoolSize
- maxPoolSizeprefill
- prefilluseStrictMin
- useStrictMinflushStrategy
- flushStrategyjava.lang.Exception
- exceptionpublic LegacyTxDataSourceImpl 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 getConnectionUrl()
NoTxDataSource
getConnectionUrl
in interface NoTxDataSource
public java.lang.String getDriverClass()
NoTxDataSource
getDriverClass
in interface NoTxDataSource
public java.util.Map<java.lang.String,java.lang.String> getConnectionProperties()
NoTxDataSource
getConnectionProperties
in interface NoTxDataSource
public 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 org.jboss.jca.common.api.metadata.ds.TransactionIsolation getTransactionIsolation()
LocalTxDataSource
getTransactionIsolation
in interface LocalTxDataSource
public boolean isNoTxSeparatePools()
LocalTxDataSource
isNoTxSeparatePools
in interface LocalTxDataSource
Copyright © 2014 IronJacamar (http://www.ironjacamar.org)