lumis.portal.transaction
Interface ITransactionObserver

Package class diagram package ITransactionObserver
All Known Implementing Classes:
AbstractMessageAction.AfterRollbackSetErrorStatus, AbstractTransactionObserver, FileCopyTransactionObserver

@StableMinor(version="6.2",
             sinceVersion="4.0")
public interface ITransactionObserver

Observer that wants to be notificated about an ITransaction's events.

Instances of this interface that need to be stateful should not be shared between multiple transactions.

Since:
4.0.8
See Also:
AbstractTransactionObserver

Method Summary
 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

beforeCommit

boolean beforeCommit()
                     throws PortalException
Called by the observed transaction just before the commit operation.

Returns:
true to indicate success; false to indicate fail, and cause the transaction to cancel commiting.
Throws:
PortalException
Since:
4.0.8

afterCommit

void afterCommit()
                 throws PortalException
Called by the observed transaction just after the commit operation.

Throws:
PortalException
Since:
4.0.8

beforeRollback

void beforeRollback()
                    throws PortalException
Called by the observed transaction just before the rollback operation.

Throws:
PortalException
Since:
4.0.8

afterRollback

void afterRollback()
                   throws PortalException
Called by the observed transaction just after the rollback operation.

Throws:
PortalException
Since:
4.0.8


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.