hu.netmind.beankeeper
Interface TransactionTracker
public interface TransactionTracker
This service is responsible for keeping track of transactions currently
running in the system.
|
Method Summary |
Transaction |
getTransaction(int mode)
Get a transaction. |
boolean |
hasTransaction(java.lang.Long serial)
Determines whether the given transaction is a valid open transaction
in this tracker or not. |
TX_REQUIRED
static final int TX_REQUIRED
- See Also:
- Constant Field Values
TX_NEW
static final int TX_NEW
- See Also:
- Constant Field Values
TX_OPTIONAL
static final int TX_OPTIONAL
- See Also:
- Constant Field Values
getTransaction
Transaction getTransaction(int mode)
- Get a transaction. Following modes are supported:
- TX_REQUIRED: A new transaction is allocated if no current
transaction exists, otherwise the current transaction is returned.
- TX_NEW: A new transaction is allocated either way.
- TX_OPTIONAL: If there is a current transaction, that is returned,
null otherwise.
Note, that each transaction can support multiple levels of begin-commit
blocks. Each transaction only commits/rollsback is the most outer
block is commited/rolled back.
hasTransaction
boolean hasTransaction(java.lang.Long serial)
- Determines whether the given transaction is a valid open transaction
in this tracker or not.