org.jboss.jca.as.converters
Class LegacyXaDataSourceImp

java.lang.Object
  extended by 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
 
Constructor Summary
LegacyXaDataSourceImp(String xaDataSourceClass, String driver, org.jboss.jca.common.api.metadata.ds.TransactionIsolation transactionIsolation, Map<String,String> xaDataSourceProperty)
          create a LegacyXaDataSourceImp
 
Method Summary
 LegacyXaDataSourceImp buildCommonPool(Integer minPoolSize, 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 part
 LegacyXaDataSourceImp buildDsSecurity(String userName, String password, String securityDomain, org.jboss.jca.common.api.metadata.common.Extension reauthPlugin)
          build security part
 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
 LegacyXaDataSourceImp buildStatement(Boolean sharePreparedStatements, Long preparedStatementsCacheSize, org.jboss.jca.common.api.metadata.ds.Statement.TrackStatementsEnum trackStatements)
          build statement part
 LegacyXaDataSourceImp buildTimeOut(Long blockingTimeoutMillis, Long idleTimeoutMinutes, Integer allocationRetry, Long allocationRetryWaitMillis, Integer xaResourceTimeout, Boolean setTxQueryTimeout, Long queryTimeout, Long useTryLock)
          build timeout part
 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)
          build validation part
 void buildXaDataSourceImpl()
          buildXaDataSourceImpl
 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.
 org.jboss.jca.common.api.metadata.common.Extension getExceptionSorter()
          Get the exceptionSorter
 Long getIdleTimeoutMinutes()
          Get the idleTimeoutMinutes.
 String getJndiName()
          Get the jndiName.
 Boolean getJta()
          getJta
 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.
 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
 String getXaDataSourceClass()
          Get the xaDataSourceClass.
 Map<String,String> getXaDataSourceProperty()
          Get the xaDataSourceProperty.
 Integer getXaResourceTimeout()
          Get the xaResourceTimeout.
 Boolean isBackgroundValidation()
          Get the backgroundValidation.
 Boolean isInterleaving()
          Get the interleaving.
 Boolean isNoTxSeparatePools()
          Get the noTxSeparatePools.
 Boolean isPadXid()
          Get the padXid.
 Boolean isPrefill()
          Get the prefill.
 Boolean isSameRmOverride()
          Get the isSameRmOverride.
 Boolean isSetTxQueryTimeout()
          Get the setTxQuertTimeout.
 Boolean isSharePreparedStatements()
          Get the sharePreparedStatements.
 Boolean isTrackConnectionByTx()
          Get the TrackConnectionByTx.
 Boolean isUseFastFail()
          Get the useFastFail.
 Boolean isUseJavaContext()
          Get the useJavaContext.
 Boolean isValidateOnMatch()
          Get the validateOnMatch.
 Boolean isWrapXaResource()
          Get the wrapXaResource.
 void setJta(Boolean jta)
          setJta
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 - xaDataSourceClass
driver - driver
transactionIsolation - transactionIsolation
xaDataSourceProperty - xaDataSourceProperty
Method Detail

buildXaDataSourceImpl

public void buildXaDataSourceImpl()
                           throws Exception
buildXaDataSourceImpl

Throws:
Exception - exception

toString

public String toString()
Overrides:
toString in class Object

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 - blockingTimeoutMillis
idleTimeoutMinutes - idleTimeoutMinutes
allocationRetry - allocationRetry
allocationRetryWaitMillis - allocationRetryWaitMillis
xaResourceTimeout - xaResourceTimeout
setTxQueryTimeout - setTxQueryTimeout
queryTimeout - queryTimeout
useTryLock - 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 - userName
password - password
securityDomain - securityDomain
reauthPlugin - 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 - sharePreparedStatements
preparedStatementsCacheSize - preparedStatementsCacheSize
trackStatements - 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 - backgroundValidation
backgroundValidationMillis - backgroundValidationMillis
useFastFail - useFastFail
validConnectionChecker - validConnectionChecker
checkValidConnectionSql - checkValidConnectionSql
validateOnMatch - validateOnMatch
staleConnectionChecker - staleConnectionChecker
exceptionSorter - exceptionSorter
Returns:
this
Throws:
Exception - exception

buildCommonPool

public LegacyXaDataSourceImp buildCommonPool(Integer minPoolSize,
                                             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 - minPoolSize
maxPoolSize - maxPoolSize
prefill - prefill
useStrictMin - useStrictMin
flushStrategy - flushStrategy
isSameRmOverride - isSameRmOverride
interleaving - interleaving
padXid - padXid
wrapXaResource - wrapXaResource
noTxSeparatePool - noTxSeparatePool
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 - urlDelimiter
urlSelectorStrategyClassName - urlSelectorStrategyClassName
newConnectionSql - newConnectionSql
useJavaContext - useJavaContext
poolName - poolName
enabled - enabled
jndiName - jndiName
spy - spy
useCcm - useCcm
jta - jta
Returns:
this

getJndiName

public String getJndiName()
Description copied from interface: ConnectionFactory
Get the jndiName.

Specified by:
getJndiName in interface ConnectionFactory
Returns:
the jndiName.

isUseJavaContext

public Boolean isUseJavaContext()
Description copied from interface: DataSource
Get the useJavaContext.

Specified by:
isUseJavaContext in interface DataSource
Returns:
the useJavaContext.

getUrlDelimiter

public String getUrlDelimiter()
Description copied from interface: DataSource
Get the urlDelimiter.

Specified by:
getUrlDelimiter in interface DataSource
Returns:
the urlDelimiter.

getUrlSelectorStrategyClassName

public String getUrlSelectorStrategyClassName()
Description copied from interface: DataSource
Get the urlSelectorStrategyClassName.

Specified by:
getUrlSelectorStrategyClassName in interface DataSource
Returns:
the urlSelectorStrategyClassName.

getUserName

public String getUserName()
Description copied from interface: DataSource
Get the userName.

Specified by:
getUserName in interface DataSource
Returns:
the userName.

getPassword

public String getPassword()
Description copied from interface: DataSource
Get the password.

Specified by:
getPassword in interface DataSource
Returns:
the password.

getSecurityDomain

public String getSecurityDomain()
Description copied from interface: ConnectionFactory
get the security domain for pure security-domain security management

Specified by:
getSecurityDomain in interface ConnectionFactory
Returns:
the security-domain to use

getMinPoolSize

public Integer getMinPoolSize()
Description copied from interface: ConnectionFactory
Get the minPoolSize.

Specified by:
getMinPoolSize in interface ConnectionFactory
Returns:
the minPoolSize.

getMaxPoolSize

public Integer getMaxPoolSize()
Description copied from interface: ConnectionFactory
Get the maxPoolSize.

Specified by:
getMaxPoolSize in interface ConnectionFactory
Returns:
the maxPoolSize.

getBlockingTimeoutMillis

public Long getBlockingTimeoutMillis()
Description copied from interface: ConnectionFactory
Get the blockingTimeoutMillis.

Specified by:
getBlockingTimeoutMillis in interface ConnectionFactory
Returns:
the blockingTimeoutMillis.

isBackgroundValidation

public Boolean isBackgroundValidation()
Description copied from interface: ConnectionFactory
Get the backgroundValidation.

Specified by:
isBackgroundValidation in interface ConnectionFactory
Returns:
the backgroundValidation.

getBackgroundValidationMillis

public Long getBackgroundValidationMillis()
Description copied from interface: ConnectionFactory
Get the backgroundValidationMillis.

Specified by:
getBackgroundValidationMillis in interface ConnectionFactory
Returns:
the backgroundValidationMillis.

getIdleTimeoutMinutes

public Long getIdleTimeoutMinutes()
Description copied from interface: ConnectionFactory
Get the idleTimeoutMinutes.

Specified by:
getIdleTimeoutMinutes in interface ConnectionFactory
Returns:
the idleTimeoutMinutes.

getAllocationRetry

public Integer getAllocationRetry()
Description copied from interface: ConnectionFactory
Get the allocationRetryWaitMillis.

Specified by:
getAllocationRetry in interface ConnectionFactory
Returns:
the allocationRetryWaitMillis.

getAllocationRetryWaitMillis

public Long getAllocationRetryWaitMillis()
Description copied from interface: ConnectionFactory
Get the allocationRetryWaitMillis.

Specified by:
getAllocationRetryWaitMillis in interface ConnectionFactory
Returns:
the allocationRetryWaitMillis.

isValidateOnMatch

public Boolean isValidateOnMatch()
Description copied from interface: DataSource
Get the validateOnMatch.

Specified by:
isValidateOnMatch in interface DataSource
Returns:
the validateOnMatch.

getNewConnectionSql

public String getNewConnectionSql()
Description copied from interface: DataSource
Get the newConnectionSql.

Specified by:
getNewConnectionSql in interface DataSource
Returns:
the newConnectionSql.

getCheckValidConnectionSql

public String getCheckValidConnectionSql()
Description copied from interface: DataSource
Get the checkValidConnectionSql.

Specified by:
getCheckValidConnectionSql in interface DataSource
Returns:
the checkValidConnectionSql.

getValidConnectionChecker

public org.jboss.jca.common.api.metadata.common.Extension getValidConnectionChecker()
Description copied from interface: DataSource
Get the validConnectionChecker

Specified by:
getValidConnectionChecker in interface DataSource
Returns:
the validConnectionChecker

getExceptionSorter

public org.jboss.jca.common.api.metadata.common.Extension getExceptionSorter()
Description copied from interface: DataSource
Get the exceptionSorter

Specified by:
getExceptionSorter in interface DataSource
Returns:
the exceptionSorter

getStaleConnectionChecker

public org.jboss.jca.common.api.metadata.common.Extension getStaleConnectionChecker()
Description copied from interface: DataSource
Get the staleConnectionChecker

Specified by:
getStaleConnectionChecker in interface DataSource
Returns:
the staleConnectionChecker

getTrackStatements

public org.jboss.jca.common.api.metadata.ds.Statement.TrackStatementsEnum getTrackStatements()
Description copied from interface: DataSource
Get the trackStatements.

Specified by:
getTrackStatements in interface DataSource
Returns:
the trackStatements.

isPrefill

public Boolean isPrefill()
Description copied from interface: ConnectionFactory
Get the prefill.

Specified by:
isPrefill in interface ConnectionFactory
Returns:
the prefill.

isUseFastFail

public Boolean isUseFastFail()
Description copied from interface: ConnectionFactory
Get the useFastFail.

Specified by:
isUseFastFail in interface ConnectionFactory
Returns:
the useFastFail.

getPreparedStatementsCacheSize

public Long getPreparedStatementsCacheSize()
Description copied from interface: DataSource
Get the preparedStatementsCacheSize.

Specified by:
getPreparedStatementsCacheSize in interface DataSource
Returns:
the preparedStatementsCacheSize.

isSharePreparedStatements

public Boolean isSharePreparedStatements()
Description copied from interface: DataSource
Get the sharePreparedStatements.

Specified by:
isSharePreparedStatements in interface DataSource
Returns:
the sharePreparedStatements.

isSetTxQueryTimeout

public Boolean isSetTxQueryTimeout()
Description copied from interface: DataSource
Get the setTxQuertTimeout.

Specified by:
isSetTxQueryTimeout in interface DataSource
Returns:
the setTxQuertTimeout.

getQueryTimeout

public Long getQueryTimeout()
Description copied from interface: DataSource
Get the queryTimeout.

Specified by:
getQueryTimeout in interface DataSource
Returns:
the queryTimeout.

getUseTryLock

public Long getUseTryLock()
Description copied from interface: DataSource
Get the useTryLock.

Specified by:
getUseTryLock in interface DataSource
Returns:
the useTryLock.

isNoTxSeparatePools

public Boolean isNoTxSeparatePools()
Description copied from interface: CommonXa
Get the noTxSeparatePools.

Specified by:
isNoTxSeparatePools in interface CommonXa
Returns:
the noTxSeparatePools.

isTrackConnectionByTx

public Boolean isTrackConnectionByTx()
Description copied from interface: CommonXa
Get the TrackConnectionByTx.

Specified by:
isTrackConnectionByTx in interface CommonXa
Returns:
the TrackConnectionByTx.

getXaResourceTimeout

public Integer getXaResourceTimeout()
Description copied from interface: CommonXa
Get the xaResourceTimeout.

Specified by:
getXaResourceTimeout in interface CommonXa
Returns:
the xaResourceTimeout.

getXaDataSourceClass

public String getXaDataSourceClass()
Description copied from interface: XaDataSource
Get the xaDataSourceClass.

Specified by:
getXaDataSourceClass in interface XaDataSource
Returns:
the xaDataSourceClass.

getXaDataSourceProperty

public Map<String,String> getXaDataSourceProperty()
Description copied from interface: XaDataSource
Get the xaDataSourceProperty.

Specified by:
getXaDataSourceProperty in interface XaDataSource
Returns:
the xaDataSourceProperty.

isSameRmOverride

public Boolean isSameRmOverride()
Description copied from interface: XaDataSource
Get the isSameRmOverride.

Specified by:
isSameRmOverride in interface XaDataSource
Returns:
the isSameRmOverride.

isInterleaving

public Boolean isInterleaving()
Description copied from interface: XaDataSource
Get the interleaving.

Specified by:
isInterleaving in interface XaDataSource
Returns:
the interleaving.

isPadXid

public Boolean isPadXid()
Description copied from interface: XaDataSource
Get the padXid.

Specified by:
isPadXid in interface XaDataSource
Returns:
the padXid.

isWrapXaResource

public Boolean isWrapXaResource()
Description copied from interface: XaDataSource
Get the wrapXaResource.

Specified by:
isWrapXaResource in interface XaDataSource
Returns:
the wrapXaResource.

setJta

public void setJta(Boolean jta)
setJta

Parameters:
jta - jta

getJta

public Boolean getJta()
getJta

Returns:
jta Boolean


Copyright © 2011 Red Hat Middleware LLC (http://www.jboss.com/)