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="14.0", sinceVersion="4.0") public abstract class AbstractTransactionObserver extends 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: 24477 $ $Date: 2021-04-28 11:30:36 -0300 (Wed, 28 Apr 2021) $
-
-
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
-
-