public class JMSMXTransactable extends java.lang.Object implements Transactable
Constructor and Description |
---|
JMSMXTransactable() |
Modifier and Type | Method and Description |
---|---|
void |
commitTransaction(MXTransaction txn)
This method will be called during commit of the transaction
|
void |
deleteMesage(JMSData messageData,
java.lang.String queueName,
UserInfo info) |
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.
|
java.util.Map |
getMessages() |
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
|
boolean |
sendEmail(QueueConfig config,
java.sql.Connection conn,
java.lang.Exception e)
Select status and deleteflag to process message
|
void |
setIsEvent(boolean isEvent) |
void |
setMessages(java.util.Map<java.lang.String,JMSData> mapOfMessages) |
void |
setUserInfo(UserInfo userInfo) |
void |
storeMesage(java.lang.String status,
JMSData messageData,
java.lang.String queueName,
java.lang.Exception e,
UserInfo info) |
void |
undoTransaction(MXTransaction txn)
This method will be called during undo of the transaction
|
boolean |
validateTransaction(MXTransaction txn)
validate transaction.
|
public void setMessages(java.util.Map<java.lang.String,JMSData> mapOfMessages)
public void setUserInfo(UserInfo userInfo)
public java.util.Map getMessages()
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)
public void storeMesage(java.lang.String status, JMSData messageData, java.lang.String queueName, java.lang.Exception e, UserInfo info) throws MXException
MXException
public void deleteMesage(JMSData messageData, java.lang.String queueName, UserInfo info) throws MXException
MXException
public boolean sendEmail(QueueConfig config, java.sql.Connection conn, java.lang.Exception e) throws MXException
proprties
- map of all message propertiesMXException
- MAXIMO exception