lumis.portal.transaction
Interface ITransactionObserver

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

@StableMinor(version="5.5",
             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  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.