public interface Transactable
extends java.rmi.Remote
MboSet
,
MXTransaction
Modifier and Type | Method and Description |
---|---|
void |
commitTransaction(MXTransaction txn)
Commit the object.
|
void |
fireEventsAfterDB(MXTransaction txn)
fire events for all mbos in the transaction after db operation.
|
void |
fireEventsAfterDBCommit(MXTransaction txn)
fire events for all mbos in the transaction after db commit.
|
void |
fireEventsBeforeDB(MXTransaction txn)
fire events for all mbos in the transaction before db operation.
|
void |
rollbackTransaction(MXTransaction txn)
Rollback the object.
|
void |
saveTransaction(MXTransaction txn)
Called to write the object to storage.
|
void |
undoTransaction(MXTransaction txn)
If an object is committed, and another object in the transaction fails to commit, the undoTransaction()
method is called so that the object can attemp to undo the committed transaction.
|
boolean |
validateTransaction(MXTransaction txn)
validate the object.
|
void saveTransaction(MXTransaction txn) throws MXException, java.rmi.RemoteException
txn
- Transaction that cuased the saveMXException
- Error while savingjava.rmi.RemoteException
- Network errorvoid commitTransaction(MXTransaction txn) throws MXException, java.rmi.RemoteException
txn
- Transaction that caused the commitMXException
- Error while committingjava.rmi.RemoteException
- Network errorvoid rollbackTransaction(MXTransaction txn) throws MXException, java.rmi.RemoteException
txn
- Transaction that caused the rollbackMXException
- Error while rolling backjava.rmi.RemoteException
- Network errorvoid undoTransaction(MXTransaction txn) throws MXException, java.rmi.RemoteException
txn
- Transaction that caused the undoMXException
- Error while undoingjava.rmi.RemoteException
- Network errorboolean validateTransaction(MXTransaction txn) throws MXException, java.rmi.RemoteException
txn
- Transaction that caused the saveMXException
- Error while committingjava.rmi.RemoteException
- Network errorvoid fireEventsBeforeDB(MXTransaction txn) throws MXException, java.rmi.RemoteException
txn
- TransactionMXException
- Error while committingjava.rmi.RemoteException
- Network errorvoid fireEventsAfterDB(MXTransaction txn) throws MXException, java.rmi.RemoteException
txn
- TransactionMXException
- Error while committingjava.rmi.RemoteException
- Network errorvoid fireEventsAfterDBCommit(MXTransaction txn) throws MXException, java.rmi.RemoteException
txn
- TransactionMXException
- Error while committingjava.rmi.RemoteException
- Network error