psdi.txn

Interface Transactable

    • Method Detail

      • saveTransaction

        void saveTransaction(MXTransaction txn)
                      throws MXException,
                             java.rmi.RemoteException
        Called to write the object to storage. No all objects require this, so it can be left empty at time of implementation.
        Parameters:
        txn - Transaction that cuased the save
        Throws:
        MXException - Error while saving
        java.rmi.RemoteException - Network error
      • commitTransaction

        void commitTransaction(MXTransaction txn)
                        throws MXException,
                               java.rmi.RemoteException
        Commit the object.
        Parameters:
        txn - Transaction that caused the commit
        Throws:
        MXException - Error while committing
        java.rmi.RemoteException - Network error
      • rollbackTransaction

        void rollbackTransaction(MXTransaction txn)
                          throws MXException,
                                 java.rmi.RemoteException
        Rollback the object.
        Parameters:
        txn - Transaction that caused the rollback
        Throws:
        MXException - Error while rolling back
        java.rmi.RemoteException - Network error
      • undoTransaction

        void undoTransaction(MXTransaction txn)
                      throws MXException,
                             java.rmi.RemoteException
        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.
        Parameters:
        txn - Transaction that caused the undo
        Throws:
        MXException - Error while undoing
        java.rmi.RemoteException - Network error
      • validateTransaction

        boolean validateTransaction(MXTransaction txn)
                             throws MXException,
                                    java.rmi.RemoteException
        validate the object.
        Parameters:
        txn - Transaction that caused the save
        Throws:
        MXException - Error while committing
        java.rmi.RemoteException - Network error
      • fireEventsBeforeDB

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

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

        void fireEventsAfterDBCommit(MXTransaction txn)
                              throws MXException,
                                     java.rmi.RemoteException
        fire events for all mbos in the transaction after db commit.
        Parameters:
        txn - Transaction
        Throws:
        MXException - Error while committing
        java.rmi.RemoteException - Network error