lumis.portal.transaction
Class AbstractTransactionObserver

Package class diagram package AbstractTransactionObserver
java.lang.Object
  extended by lumis.portal.transaction.AbstractTransactionObserver
All Implemented Interfaces:
ITransactionObserver
Direct Known Subclasses:
AbstractMessageAction.AfterRollbackSetErrorStatus

@StableMinor(version="6.2",
             sinceVersion="4.0")
public abstract class AbstractTransactionObserver
extends Object
implements ITransactionObserver

Implementation of ITransactionObserver that does not affect the outrun of a transaction. Intended for making the implementation of ITransactionObserver easier by extending this class.

Since:
4.0.8

Constructor Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTransactionObserver

public AbstractTransactionObserver()
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 interface ITransactionObserver
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 interface ITransactionObserver
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 interface ITransactionObserver
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 interface ITransactionObserver
Throws:
PortalException


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