Interface TransactionConfig

All Known Implementing Classes:
BaseTransactionConfig, ExternalTransactionConfig, JdbcTransactionConfig, JtaTransactionConfig

public interface TransactionConfig
The Interface TransactionConfig.
  • Method Details

    • newTransaction

      Transaction newTransaction(int transactionIsolation) throws SQLException, TransactionException
      New transaction.
      Parameters:
      transactionIsolation - the transaction isolation
      Returns:
      the transaction
      Throws:
      SQLException - the SQL exception
      TransactionException - the transaction exception
    • getDataSource

      DataSource getDataSource()
      Gets the data source.
      Returns:
      the data source
    • setDataSource

      void setDataSource(DataSource ds)
      Sets the data source.
      Parameters:
      ds - the new data source
    • getMaximumConcurrentTransactions

      int getMaximumConcurrentTransactions()
      Deprecated.
      This should not be used and is here purely to avoid spring integration from breaking.
      Returns:
      -1
    • setMaximumConcurrentTransactions

      void setMaximumConcurrentTransactions(int maximumConcurrentTransactions)
      Deprecated.
      This should not be used. It does nothing and is here purely to prevent Spring integration from breaking
      Parameters:
      maximumConcurrentTransactions - the new maximum concurrent transactions
    • isForceCommit

      boolean isForceCommit()
      Checks if is force commit.
      Returns:
      true, if is force commit
    • setForceCommit

      void setForceCommit(boolean forceCommit)
      Sets the force commit.
      Parameters:
      forceCommit - the new force commit
    • initialize

      void initialize(Properties props) throws SQLException, TransactionException
      Deprecated.
      This method should call setProperties. It is here simply to ease transition
      Parameters:
      props - - Properties
      Throws:
      SQLException - the SQL exception
      TransactionException - the transaction exception
    • setProperties

      void setProperties(Properties props) throws SQLException, TransactionException
      Sets the properties.
      Parameters:
      props - the new properties
      Throws:
      SQLException - the SQL exception
      TransactionException - the transaction exception