
public class LegacyTxDataSourceImpl extends Object implements LocalTxDataSource
LocalTxDataSource.Tag| Constructor and Description |
|---|
LegacyTxDataSourceImpl(String connectionUrl,
String driverClass,
String dataSourceClass,
String driver,
org.jboss.jca.common.api.metadata.ds.TransactionIsolation transactionIsolation,
Map<String,String> connectionProperties)
create a LegacyTxDataSourceImpl
|
| Modifier and Type | Method and Description |
|---|---|
LegacyTxDataSourceImpl |
buildCommonPool(Integer minPoolSize,
Integer maxPoolSize,
Boolean prefill,
Boolean useStrictMin,
org.jboss.jca.common.api.metadata.common.FlushStrategy flushStrategy)
build pool part
|
void |
buildDataSourceImpl()
buildDataSourceImpl
|
LegacyTxDataSourceImpl |
buildDsSecurity(String userName,
String password,
String securityDomain,
org.jboss.jca.common.api.metadata.common.Extension reauthPlugin)
build security part
|
LegacyTxDataSourceImpl |
buildOther(String urlDelimiter,
String urlSelectorStrategyClassName,
String newConnectionSql,
Boolean useJavaContext,
String poolName,
Boolean enabled,
String jndiName,
Boolean spy,
Boolean useCcm,
Boolean jta)
build other properties
|
LegacyTxDataSourceImpl |
buildStatement(Boolean sharePreparedStatements,
Long preparedStatementsCacheSize,
org.jboss.jca.common.api.metadata.ds.Statement.TrackStatementsEnum trackStatements)
build statement part
|
LegacyTxDataSourceImpl |
buildTimeOut(Long blockingTimeoutMillis,
Long idleTimeoutMinutes,
Integer allocationRetry,
Long allocationRetryWaitMillis,
Integer xaResourceTimeout,
Boolean setTxQueryTimeout,
Long queryTimeout,
Long useTryLock)
build timeout part
|
LegacyTxDataSourceImpl |
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)
build validation part
|
Integer |
getAllocationRetry()
Get the allocationRetryWaitMillis.
|
Long |
getAllocationRetryWaitMillis()
Get the allocationRetryWaitMillis.
|
Long |
getBackgroundValidationMillis()
Get the backgroundValidationMillis.
|
Long |
getBlockingTimeoutMillis()
Get the blockingTimeoutMillis.
|
String |
getCheckValidConnectionSql()
Get the checkValidConnectionSql.
|
Map<String,String> |
getConnectionProperties()
Get the connectionProperties.
|
String |
getConnectionUrl()
Get the connectionUrl.
|
String |
getDriverClass()
Get the driverClass.
|
org.jboss.jca.common.api.metadata.common.Extension |
getExceptionSorter()
Get the exceptionSorter
|
Long |
getIdleTimeoutMinutes()
Get the idleTimeoutMinutes.
|
String |
getJndiName()
Get the jndiName.
|
Integer |
getMaxPoolSize()
Get the maxPoolSize.
|
Integer |
getMinPoolSize()
Get the minPoolSize.
|
String |
getNewConnectionSql()
Get the newConnectionSql.
|
String |
getPassword()
Get the password.
|
Long |
getPreparedStatementsCacheSize()
Get the preparedStatementsCacheSize.
|
Long |
getQueryTimeout()
Get the queryTimeout.
|
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.
|
String |
getUrlDelimiter()
Get the urlDelimiter.
|
String |
getUrlSelectorStrategyClassName()
Get the urlSelectorStrategyClassName.
|
String |
getUserName()
Get the userName.
|
Long |
getUseTryLock()
Get the useTryLock.
|
org.jboss.jca.common.api.metadata.common.Extension |
getValidConnectionChecker()
Get the validConnectionChecker
|
Boolean |
isBackgroundValidation()
Get the backgroundValidation.
|
boolean |
isNoTxSeparatePools()
isNoTxSeparatePools
|
Boolean |
isPrefill()
Get the prefill.
|
Boolean |
isSetTxQueryTimeout()
Get the setTxQuertTimeout.
|
Boolean |
isSharePreparedStatements()
Get the sharePreparedStatements.
|
Boolean |
isUseFastFail()
Get the useFastFail.
|
Boolean |
isUseJavaContext()
Get the useJavaContext.
|
Boolean |
isValidateOnMatch()
Get the validateOnMatch.
|
String |
toString() |
public LegacyTxDataSourceImpl(String connectionUrl, String driverClass, String dataSourceClass, String driver, org.jboss.jca.common.api.metadata.ds.TransactionIsolation transactionIsolation, Map<String,String> connectionProperties)
connectionUrl - connectionUrldriverClass - driverClassdataSourceClass - dataSourceClassdriver - drivertransactionIsolation - transactionIsolationconnectionProperties - connectionPropertiespublic void buildDataSourceImpl()
throws Exception
Exception - exceptionpublic LegacyTxDataSourceImpl buildTimeOut(Long blockingTimeoutMillis, Long idleTimeoutMinutes, Integer allocationRetry, Long allocationRetryWaitMillis, Integer xaResourceTimeout, Boolean setTxQueryTimeout, Long queryTimeout, Long useTryLock) throws Exception
blockingTimeoutMillis - blockingTimeoutMillisidleTimeoutMinutes - idleTimeoutMinutesallocationRetry - allocationRetryallocationRetryWaitMillis - allocationRetryWaitMillisxaResourceTimeout - xaResourceTimeoutsetTxQueryTimeout - setTxQueryTimeoutqueryTimeout - queryTimeoutuseTryLock - useTryLockException - exceptionpublic LegacyTxDataSourceImpl buildDsSecurity(String userName, String password, String securityDomain, org.jboss.jca.common.api.metadata.common.Extension reauthPlugin) throws Exception
userName - userNamepassword - passwordsecurityDomain - securityDomainreauthPlugin - reauthPluginException - exceptionpublic LegacyTxDataSourceImpl buildStatement(Boolean sharePreparedStatements, Long preparedStatementsCacheSize, org.jboss.jca.common.api.metadata.ds.Statement.TrackStatementsEnum trackStatements) throws Exception
sharePreparedStatements - sharePreparedStatementspreparedStatementsCacheSize - preparedStatementsCacheSizetrackStatements - trackStatementsException - exceptionpublic LegacyTxDataSourceImpl 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
backgroundValidation - backgroundValidationbackgroundValidationMillis - backgroundValidationMillisuseFastFail - useFastFailvalidConnectionChecker - validConnectionCheckercheckValidConnectionSql - checkValidConnectionSqlvalidateOnMatch - validateOnMatchstaleConnectionChecker - staleConnectionCheckerexceptionSorter - exceptionSorterException - exceptionpublic LegacyTxDataSourceImpl buildCommonPool(Integer minPoolSize, Integer maxPoolSize, Boolean prefill, Boolean useStrictMin, org.jboss.jca.common.api.metadata.common.FlushStrategy flushStrategy) throws Exception
minPoolSize - minPoolSizemaxPoolSize - maxPoolSizeprefill - prefilluseStrictMin - useStrictMinflushStrategy - flushStrategyException - exceptionpublic LegacyTxDataSourceImpl buildOther(String urlDelimiter, String urlSelectorStrategyClassName, String newConnectionSql, Boolean useJavaContext, String poolName, Boolean enabled, String jndiName, Boolean spy, Boolean useCcm, Boolean jta)
urlDelimiter - urlDelimiterurlSelectorStrategyClassName - urlSelectorStrategyClassNamenewConnectionSql - newConnectionSqluseJavaContext - useJavaContextpoolName - poolNameenabled - enabledjndiName - jndiNamespy - spyuseCcm - useCcmjta - jtapublic String getConnectionUrl()
NoTxDataSourcegetConnectionUrl in interface NoTxDataSourcepublic String getDriverClass()
NoTxDataSourcegetDriverClass in interface NoTxDataSourcepublic Map<String,String> getConnectionProperties()
NoTxDataSourcegetConnectionProperties in interface NoTxDataSourcepublic String getJndiName()
ConnectionFactorygetJndiName in interface ConnectionFactorypublic Boolean isUseJavaContext()
DataSourceisUseJavaContext in interface DataSourcepublic String getUrlDelimiter()
DataSourcegetUrlDelimiter in interface DataSourcepublic String getUrlSelectorStrategyClassName()
DataSourcegetUrlSelectorStrategyClassName in interface DataSourcepublic String getUserName()
DataSourcegetUserName in interface DataSourcepublic String getPassword()
DataSourcegetPassword in interface DataSourcepublic String getSecurityDomain()
ConnectionFactorygetSecurityDomain in interface ConnectionFactorypublic Integer getMinPoolSize()
ConnectionFactorygetMinPoolSize in interface ConnectionFactorypublic Integer getMaxPoolSize()
ConnectionFactorygetMaxPoolSize in interface ConnectionFactorypublic Long getBlockingTimeoutMillis()
ConnectionFactorygetBlockingTimeoutMillis in interface ConnectionFactorypublic Boolean isBackgroundValidation()
ConnectionFactoryisBackgroundValidation in interface ConnectionFactorypublic Long getBackgroundValidationMillis()
ConnectionFactorygetBackgroundValidationMillis in interface ConnectionFactorypublic Long getIdleTimeoutMinutes()
ConnectionFactorygetIdleTimeoutMinutes in interface ConnectionFactorypublic Integer getAllocationRetry()
ConnectionFactorygetAllocationRetry in interface ConnectionFactorypublic Long getAllocationRetryWaitMillis()
ConnectionFactorygetAllocationRetryWaitMillis in interface ConnectionFactorypublic Boolean isValidateOnMatch()
DataSourceisValidateOnMatch in interface DataSourcepublic String getNewConnectionSql()
DataSourcegetNewConnectionSql in interface DataSourcepublic 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 Boolean isPrefill()
ConnectionFactoryisPrefill in interface ConnectionFactorypublic Boolean isUseFastFail()
ConnectionFactoryisUseFastFail in interface ConnectionFactorypublic Long getPreparedStatementsCacheSize()
DataSourcegetPreparedStatementsCacheSize in interface DataSourcepublic Boolean isSharePreparedStatements()
DataSourceisSharePreparedStatements in interface DataSourcepublic Boolean isSetTxQueryTimeout()
DataSourceisSetTxQueryTimeout in interface DataSourcepublic Long getQueryTimeout()
DataSourcegetQueryTimeout in interface DataSourcepublic 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 © 2012 JBoss, by Red Hat (http://www.jboss.org/ironjacamar)