Package lumis.portal.transaction
Class AbstractTransactionObserver
- java.lang.Object
-
- lumis.portal.transaction.AbstractTransactionObserver
-
- All Implemented Interfaces:
ITransactionObserver
- Direct Known Subclasses:
AbstractMessageAction.AfterRollbackSetErrorStatus
,ContentAdminActivityGenerationTransactionObserver
,ContentPublicationActivityGenerationTransactionObserver
@StableMinor(version="16.0", sinceVersion="4.0") public abstract class AbstractTransactionObserver extends java.lang.Object implements ITransactionObserver
Implementation ofITransactionObserver
that does not affect the outrun of a transaction. Intended for making the implementation ofITransactionObserver
easier by extending this class.- Since:
- 4.0.8
- Version:
- $Revision: 25808 $ $Date: 2023-07-04 15:20:55 -0300 (Tue, 04 Jul 2023) $
-
-
Constructor Summary
Constructors Constructor Description AbstractTransactionObserver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterCommit()
Called by the observed transaction just after the commit operation.void
afterRollback()
Called by the observed transaction just after the rollback operation.boolean
beforeCommit()
Called by the observed transaction just before the commit operation.void
beforeRollback()
Called by the observed transaction just before the rollback operation.
-
-
-
Method Detail
-
afterCommit
public void afterCommit() throws PortalException
Description copied from interface:ITransactionObserver
Called by the observed transaction just after the commit operation.- Specified by:
afterCommit
in interfaceITransactionObserver
- Throws:
PortalException
-
afterRollback
public void afterRollback() throws PortalException
Description copied from interface:ITransactionObserver
Called by the observed transaction just after the rollback operation.- Specified by:
afterRollback
in interfaceITransactionObserver
- Throws:
PortalException
-
beforeCommit
public boolean beforeCommit() throws PortalException
Description copied from interface:ITransactionObserver
Called by the observed transaction just before the commit operation.- Specified by:
beforeCommit
in interfaceITransactionObserver
- Returns:
- true to indicate success; false to indicate fail, and cause the transaction to cancel commiting.
- Throws:
PortalException
-
beforeRollback
public void beforeRollback() throws PortalException
Description copied from interface:ITransactionObserver
Called by the observed transaction just before the rollback operation.- Specified by:
beforeRollback
in interfaceITransactionObserver
- Throws:
PortalException
-
-