Interface TransactionListener

    • Method Detail

      • flush

        void flush()
        Deprecated.
        No longer supported
      • beforeCommit

        void beforeCommit​(boolean readOnly)
        Called before a transaction is committed.

        All transaction resources are still available.

        Specified by:
        beforeCommit in interface org.alfresco.util.transaction.TransactionListener
        Parameters:
        readOnly - true if the transaction is read-only
      • beforeCompletion

        void beforeCompletion()
        Invoked before transaction commit/rollback. Will be called after beforeCommit(boolean) even if beforeCommit(boolean) failed.

        All transaction resources are still available.

        Specified by:
        beforeCompletion in interface org.alfresco.util.transaction.TransactionListener
      • afterCommit

        void afterCommit()
        Invoked after transaction commit.

        Any exceptions generated here will only be logged and will have no effect on the state of the transaction.

        Although all transaction resources are still available, this method should be used only for cleaning up resources after a commit has occured.

        Specified by:
        afterCommit in interface org.alfresco.util.transaction.TransactionListener
      • afterRollback

        void afterRollback()
        Invoked after transaction rollback.

        Any exceptions generated here will only be logged and will have no effect on the state of the transaction.

        Although all transaction resources are still available, this method should be used only for cleaning up resources after a rollback has occured.

        Specified by:
        afterRollback in interface org.alfresco.util.transaction.TransactionListener