Class LegacyTxDataSourceImpl

    • Constructor Detail

      • LegacyTxDataSourceImpl

        public 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
        Parameters:
        connectionUrl - connectionUrl
        driverClass - driverClass
        dataSourceClass - dataSourceClass
        driver - driver
        transactionIsolation - transactionIsolation
        connectionProperties - connectionProperties
    • Method Detail

      • buildDataSourceImpl

        public void buildDataSourceImpl()
                                 throws Exception
        buildDataSourceImpl
        Throws:
        Exception - exception
      • buildTimeOut

        public LegacyTxDataSourceImpl 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 LegacyTxDataSourceImpl 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 LegacyTxDataSourceImpl 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 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
        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 LegacyTxDataSourceImpl buildCommonPool​(Integer minPoolSize,
                                                      Integer initialPoolSize,
                                                      Integer maxPoolSize,
                                                      Boolean prefill,
                                                      Boolean useStrictMin,
                                                      org.jboss.jca.common.api.metadata.common.FlushStrategy flushStrategy)
                                               throws Exception
        build pool part
        Parameters:
        minPoolSize - minPoolSize
        initialPoolSize - initialPoolSize
        maxPoolSize - maxPoolSize
        prefill - prefill
        useStrictMin - useStrictMin
        flushStrategy - flushStrategy
        Returns:
        this
        Throws:
        Exception - exception
      • buildOther

        public 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
        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.
      • getTransactionIsolation

        public org.jboss.jca.common.api.metadata.ds.TransactionIsolation getTransactionIsolation()
        Description copied from interface: LocalTxDataSource
        Get the transactionIsolation.
        Specified by:
        getTransactionIsolation in interface LocalTxDataSource
        Returns:
        the transactionIsolation.