Interface TransactionConfig
- All Known Implementing Classes:
BaseTransactionConfig
,ExternalTransactionConfig
,JdbcTransactionConfig
,JtaTransactionConfig
public interface TransactionConfig
The Interface TransactionConfig.
-
Method Summary
Modifier and TypeMethodDescriptionGets the data source.int
Deprecated.void
initialize
(Properties props) Deprecated.boolean
Checks if is force commit.newTransaction
(int transactionIsolation) New transaction.void
Sets the data source.void
setForceCommit
(boolean forceCommit) Sets the force commit.void
setMaximumConcurrentTransactions
(int maximumConcurrentTransactions) Deprecated.void
setProperties
(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
DataSource getDataSource()Gets the data source.- Returns:
- the data source
-
setDataSource
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
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
-