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.Objectpublic 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()
NoTxDataSourcegetConnectionUrl in interface NoTxDataSourcepublic java.lang.String getDriverClass()
NoTxDataSourcegetDriverClass in interface NoTxDataSourcepublic java.util.Map<java.lang.String,java.lang.String> getConnectionProperties()
NoTxDataSourcegetConnectionProperties in interface NoTxDataSourcepublic java.lang.String getJndiName()
ConnectionFactorygetJndiName in interface ConnectionFactorypublic java.lang.Boolean isUseJavaContext()
DataSourceisUseJavaContext in interface DataSourcepublic java.lang.String getUrlDelimiter()
DataSourcegetUrlDelimiter in interface DataSourcepublic java.lang.String getUrlSelectorStrategyClassName()
DataSourcegetUrlSelectorStrategyClassName in interface DataSourcepublic java.lang.String getUserName()
DataSourcegetUserName in interface DataSourcepublic java.lang.String getPassword()
DataSourcegetPassword in interface DataSourcepublic java.lang.String getSecurityDomain()
ConnectionFactorygetSecurityDomain in interface ConnectionFactorypublic java.lang.Integer getMinPoolSize()
ConnectionFactorygetMinPoolSize in interface ConnectionFactorypublic java.lang.Integer getMaxPoolSize()
ConnectionFactorygetMaxPoolSize in interface ConnectionFactorypublic java.lang.Long getBlockingTimeoutMillis()
ConnectionFactorygetBlockingTimeoutMillis in interface ConnectionFactorypublic java.lang.Boolean isBackgroundValidation()
ConnectionFactoryisBackgroundValidation in interface ConnectionFactorypublic java.lang.Long getBackgroundValidationMillis()
ConnectionFactorygetBackgroundValidationMillis in interface ConnectionFactorypublic java.lang.Long getIdleTimeoutMinutes()
ConnectionFactorygetIdleTimeoutMinutes in interface ConnectionFactorypublic java.lang.Integer getAllocationRetry()
ConnectionFactorygetAllocationRetry in interface ConnectionFactorypublic java.lang.Long getAllocationRetryWaitMillis()
ConnectionFactorygetAllocationRetryWaitMillis in interface ConnectionFactorypublic java.lang.Boolean isValidateOnMatch()
DataSourceisValidateOnMatch in interface DataSourcepublic java.lang.String getNewConnectionSql()
DataSourcegetNewConnectionSql in interface DataSourcepublic java.lang.String getCheckValidConnectionSql()
DataSourcegetCheckValidConnectionSql in interface DataSourcepublic org.jboss.jca.common.api.metadata.common.Extension getValidConnectionChecker()
DataSourcegetValidConnectionChecker in interface DataSourcepublic org.jboss.jca.common.api.metadata.common.Extension getExceptionSorter()
DataSourcegetExceptionSorter in interface DataSourcepublic org.jboss.jca.common.api.metadata.common.Extension getStaleConnectionChecker()
DataSourcegetStaleConnectionChecker in interface DataSourcepublic org.jboss.jca.common.api.metadata.ds.Statement.TrackStatementsEnum getTrackStatements()
DataSourcegetTrackStatements in interface DataSourcepublic java.lang.Boolean isPrefill()
ConnectionFactoryisPrefill in interface ConnectionFactorypublic java.lang.Boolean isUseFastFail()
ConnectionFactoryisUseFastFail in interface ConnectionFactorypublic java.lang.Long getPreparedStatementsCacheSize()
DataSourcegetPreparedStatementsCacheSize in interface DataSourcepublic java.lang.Boolean isSharePreparedStatements()
DataSourceisSharePreparedStatements in interface DataSourcepublic java.lang.Boolean isSetTxQueryTimeout()
DataSourceisSetTxQueryTimeout in interface DataSourcepublic java.lang.Long getQueryTimeout()
DataSourcegetQueryTimeout in interface DataSourcepublic java.lang.Long getUseTryLock()
DataSourcegetUseTryLock in interface DataSourcepublic org.jboss.jca.common.api.metadata.ds.TransactionIsolation getTransactionIsolation()
LocalTxDataSourcegetTransactionIsolation in interface LocalTxDataSourcepublic boolean isNoTxSeparatePools()
LocalTxDataSourceisNoTxSeparatePools in interface LocalTxDataSourceCopyright © 2014 IronJacamar (http://www.ironjacamar.org)