Class LegacyXaDataSourceImp

    • 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
      • 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 initialPoolSize,
                                                     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
        initialPoolSize - initialPoolSize
        maxPoolSize - maxPoolSize
        prefill - prefill
        useStrictMin - useStrictMin
        flushStrategy - flushStrategy
        isSameRmOverride - isSameRmOverride
        interleaving - interleaving
        padXid - padXid
        wrapXaResource - wrapXaResource
        noTxSeparatePool - noTxSeparatePool
        Returns:
        this
        Throws:
        Exception - exception
      • buildRecovery

        public LegacyXaDataSourceImp buildRecovery​(String recoveryUsername,
                                                   String recoveryPassword,
                                                   Boolean noRecovery)
                                            throws Exception
        build recovery part
        Parameters:
        recoveryUsername - recoveryUsername
        recoveryPassword - recoveryPassword
        noRecovery - noRecovery
        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
      • 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.
      • getPreparedStatementsCacheSize

        public Long getPreparedStatementsCacheSize()
        Description copied from interface: DataSource
        Get the preparedStatementsCacheSize.
        Specified by:
        getPreparedStatementsCacheSize in interface DataSource
        Returns:
        the preparedStatementsCacheSize.
      • 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.
      • setJta

        public void setJta​(Boolean jta)
        setJta
        Parameters:
        jta - jta
      • getJta

        public Boolean getJta()
        getJta
        Returns:
        jta Boolean