com.ibm.tivoli.maximo.notification

Class MsgHubMXTransactable

  • java.lang.Object
    • com.ibm.tivoli.maximo.notification.MsgHubMXTransactable
  • All Implemented Interfaces:
    java.rmi.Remote, Transactable


    public class MsgHubMXTransactable
    extends java.lang.Object
    implements Transactable
    The Transactable object for JMS. This participates in the Maximo transaction.
    • Field Detail

      • integrationLogger

        protected static final MXLogger integrationLogger
        Integration Logger
    • Constructor Detail

      • MsgHubMXTransactable

        public MsgHubMXTransactable(java.lang.String topic,
                                    Message msg)
    • Method Detail

      • setSyntheticNotf

        public void setSyntheticNotf(boolean syntheticNotf)
      • saveTransaction

        public void saveTransaction(MXTransaction txn)
                             throws MXException,
                                    java.rmi.RemoteException
        This method will be called during save of the transaction
        Specified by:
        saveTransaction in interface Transactable
        Parameters:
        txn - Give reference to transaction object.
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • commitTransaction

        public void commitTransaction(MXTransaction txn)
                               throws MXException,
                                      java.rmi.RemoteException
        This method will be called during commit of the transaction
        Specified by:
        commitTransaction in interface Transactable
        Parameters:
        txn - Give reference to transaction object.
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • rollbackTransaction

        public void rollbackTransaction(MXTransaction txn)
                                 throws MXException,
                                        java.rmi.RemoteException
        This method will be called during rollback of the transaction
        Specified by:
        rollbackTransaction in interface Transactable
        Parameters:
        txn - Give reference to transaction object.
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • undoTransaction

        public void undoTransaction(MXTransaction txn)
                             throws MXException,
                                    java.rmi.RemoteException
        This method will be called during undo of the transaction
        Specified by:
        undoTransaction in interface Transactable
        Parameters:
        txn - reference to transaction object.
        Throws:
        MXException - MAXIMO exception
        java.rmi.RemoteException - Remote exception
      • validateTransaction

        public boolean validateTransaction(MXTransaction txn)
                                    throws MXException,
                                           java.rmi.RemoteException
        validate transaction.
        Specified by:
        validateTransaction in interface Transactable
        Parameters:
        txn - Transaction that caused the save
        Throws:
        MXException - Error while committing
        java.rmi.RemoteException - Network error
      • fireEventsBeforeDB

        public void fireEventsBeforeDB(MXTransaction txn)
                                throws MXException,
                                       java.rmi.RemoteException
        Description copied from interface: Transactable
        fire events for all mbos in the transaction before db operation.
        Specified by:
        fireEventsBeforeDB in interface Transactable
        Parameters:
        txn - Transaction
        Throws:
        MXException - Error while committing
        java.rmi.RemoteException - Network error
      • fireEventsAfterDB

        public void fireEventsAfterDB(MXTransaction txn)
                               throws MXException,
                                      java.rmi.RemoteException
        Description copied from interface: Transactable
        fire events for all mbos in the transaction after db operation.
        Specified by:
        fireEventsAfterDB in interface Transactable
        Parameters:
        txn - Transaction
        Throws:
        MXException - Error while committing
        java.rmi.RemoteException - Network error
      • fireEventsAfterDBCommit

        public void fireEventsAfterDBCommit(MXTransaction txn)
                                     throws MXException,
                                            java.rmi.RemoteException
        Description copied from interface: Transactable
        fire events for all mbos in the transaction after db commit.
        Specified by:
        fireEventsAfterDBCommit in interface Transactable
        Parameters:
        txn - Transaction
        Throws:
        MXException - Error while committing
        java.rmi.RemoteException - Network error
      • isEvent

        public boolean isEvent()
      • setIsEvent

        public void setIsEvent(boolean isEvent)