Interface TransactionConfig
- All Known Implementing Classes:
BaseTransactionConfig, ExternalTransactionConfig, JakartaTransactionConfig, JavaxTransactionConfig, JdbcTransactionConfig
public interface TransactionConfig
The Interface TransactionConfig.
-
Method Summary
Modifier and TypeMethodDescriptionGets the data source.intDeprecated.voidinitialize(Properties props) Deprecated.booleanChecks if is force commit.newTransaction(int transactionIsolation) New transaction.voidSets the data source.voidsetForceCommit(boolean forceCommit) Sets the force commit.voidsetMaximumConcurrentTransactions(int maximumConcurrentTransactions) Deprecated.voidsetProperties(Properties props) Sets the properties.
-
Method Details
-
newTransaction
New transaction.- Parameters:
transactionIsolation- the transaction isolation- Returns:
- the transaction
- Throws:
SQLException- the SQL exceptionTransactionException- the transaction exception
-
getDataSource
-
setDataSource
-
getMaximumConcurrentTransactions
Deprecated.This should not be used and is here purely to avoid spring integration from breaking.- Returns:
- -1
-
setMaximumConcurrentTransactions
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
Deprecated.This method should call setProperties. It is here simply to ease transition- Parameters:
props- - Properties- Throws:
SQLException- the SQL exceptionTransactionException- the transaction exception
-
setProperties
Sets the properties.- Parameters:
props- the new properties- Throws:
SQLException- the SQL exceptionTransactionException- the transaction exception
-