public class MsgHubMXTransactable extends java.lang.Object implements Transactable
Constructor and Description |
---|
MsgHubMXTransactable(java.lang.String topic,
Message msg) |
Modifier and Type | Method and Description |
---|---|
void |
commitTransaction(MXTransaction txn)
This method will be called during commit of the transaction
|
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.
|
boolean |
isEvent() |
void |
rollbackTransaction(MXTransaction txn)
This method will be called during rollback of the transaction
|
void |
saveTransaction(MXTransaction txn)
This method will be called during save of the transaction
|
void |
setIsEvent(boolean isEvent) |
void |
setSyntheticNotf(boolean syntheticNotf) |
void |
undoTransaction(MXTransaction txn)
This method will be called during undo of the transaction
|
boolean |
validateTransaction(MXTransaction txn)
validate transaction.
|
public MsgHubMXTransactable(java.lang.String topic, Message msg)
public void setSyntheticNotf(boolean syntheticNotf)
public void saveTransaction(MXTransaction txn) throws MXException, java.rmi.RemoteException
saveTransaction
in interface Transactable
txn
- Give reference to transaction object.MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic void commitTransaction(MXTransaction txn) throws MXException, java.rmi.RemoteException
commitTransaction
in interface Transactable
txn
- Give reference to transaction object.MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic void rollbackTransaction(MXTransaction txn) throws MXException, java.rmi.RemoteException
rollbackTransaction
in interface Transactable
txn
- Give reference to transaction object.MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic void undoTransaction(MXTransaction txn) throws MXException, java.rmi.RemoteException
undoTransaction
in interface Transactable
txn
- reference to transaction object.MXException
- MAXIMO exceptionjava.rmi.RemoteException
- Remote exceptionpublic boolean validateTransaction(MXTransaction txn) throws MXException, java.rmi.RemoteException
validateTransaction
in interface Transactable
txn
- Transaction that caused the saveMXException
- Error while committingjava.rmi.RemoteException
- Network errorpublic void fireEventsBeforeDB(MXTransaction txn) throws MXException, java.rmi.RemoteException
Transactable
fireEventsBeforeDB
in interface Transactable
txn
- TransactionMXException
- Error while committingjava.rmi.RemoteException
- Network errorpublic void fireEventsAfterDB(MXTransaction txn) throws MXException, java.rmi.RemoteException
Transactable
fireEventsAfterDB
in interface Transactable
txn
- TransactionMXException
- Error while committingjava.rmi.RemoteException
- Network errorpublic void fireEventsAfterDBCommit(MXTransaction txn) throws MXException, java.rmi.RemoteException
Transactable
fireEventsAfterDBCommit
in interface Transactable
txn
- TransactionMXException
- Error while committingjava.rmi.RemoteException
- Network errorpublic boolean isEvent()
public void setIsEvent(boolean isEvent)