Class TransactionListenerAdapter

    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void afterCommit()
      Deprecated.
      Invoked after transaction commit.
      void afterRollback()
      Deprecated.
      Invoked after transaction rollback.
      void beforeCommit​(boolean readOnly)
      Deprecated.
      Called before a transaction is committed.
      void beforeCompletion()
      Deprecated.
      Invoked before transaction commit/rollback.
      void flush()
      Deprecated.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TransactionListenerAdapter

        public TransactionListenerAdapter()
        Deprecated.
    • Method Detail

      • beforeCommit

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

        All transaction resources are still available.

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

        public void afterCommit()
        Deprecated.
        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 TransactionListener
        Specified by:
        afterCommit in interface org.alfresco.util.transaction.TransactionListener
      • afterRollback

        public void afterRollback()
        Deprecated.
        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 TransactionListener
        Specified by:
        afterRollback in interface org.alfresco.util.transaction.TransactionListener