public interface TransactionManager
TransactionManager
provides a centralized interface for all transaction related services. It contains methods
to commit and rollback transactions.
The TransactionManager is accessed using EbaseSystem.getTransactionManager()
.
Modifier and Type | Method and Description |
---|---|
void |
commitAndRestartTransaction()
Commits the current transaction and starts a new transaction.
|
int |
getDefaultTransactionTimeout()
Returns the configured default transaction timeout value in seconds.
|
void |
rollbackAndRestartTransaction()
Rolls back the current transaction and starts a new transaction.
|
void |
setDefaultTransactionTimeout(int noSeconds)
Sets the default transaction timeout value in seconds, which is applied to all new transactions started after this time.
|
void commitAndRestartTransaction() throws com.ebasetech.xi.exceptions.FormTransactionRuntimeException
All processing must be executed within a transactional environment and the system provides default behaviour to ensure this: a transaction is started automatically each time a post is received from the user, and the current transaction is automatically committed just before the output page is presented to the user.
This method provides the opportunity to divide processing into a number of smaller transactions.
com.ebasetech.xi.exceptions.FormTransactionRuntimeException
- if any failure occursrollbackAndRestartTransaction()
void rollbackAndRestartTransaction() throws com.ebasetech.xi.exceptions.FormTransactionRuntimeException
All processing must be executed within a transactional environment and the system provides default behaviour to ensure this: a transaction is started automatically each time a post is received from the user, and the current transaction is automatically committed just before the output page is presented to the user.
com.ebasetech.xi.exceptions.FormTransactionRuntimeException
- if any failure occurscommitAndRestartTransaction()
int getDefaultTransactionTimeout()
void setDefaultTransactionTimeout(int noSeconds)
noSeconds
- number of seconds