org.apache.ojb.broker
Interface PBStateListener

All Superinterfaces:
PBListener
All Known Implementing Classes:
IdentityFactoryImpl, ObjectCacheDefaultImpl, ObjectCachePerBrokerImpl, ObjectCacheTwoLevelImpl, RsIterator.ResourceWrapper

public interface PBStateListener
extends PBListener

The listener interface for receiving PersistenceBroker state changes.

Version:
$Id: PBStateListener.java 365231 2005-12-21 22:22:08Z tomdz $
Author:
Armin Waibel

Method Summary
 void afterBegin(PBStateEvent event)
          Called after a transaction was started.
 void afterCommit(PBStateEvent event)
          Called after a transaction was comitted.
 void afterOpen(PBStateEvent event)
          Called after the PersistenceBroker instance was obtained from the pool.
 void afterRollback(PBStateEvent event)
          Called after a transaction was rolled back.
 void beforeBegin(PBStateEvent event)
          Called before a transaction was started.
 void beforeClose(PBStateEvent event)
          Called before the PersistenceBroker instance will be returned to the pool.
 void beforeCommit(PBStateEvent event)
          Called before a transaction will be comitted.
 void beforeRollback(PBStateEvent event)
          Called before a transaction will be rolled back.
 

Method Detail

afterOpen

void afterOpen(PBStateEvent event)
Called after the PersistenceBroker instance was obtained from the pool.

Parameters:
event - The event object

beforeBegin

void beforeBegin(PBStateEvent event)
Called before a transaction was started.

Parameters:
event - The event object

afterBegin

void afterBegin(PBStateEvent event)
Called after a transaction was started.

Parameters:
event - The event object

beforeCommit

void beforeCommit(PBStateEvent event)
Called before a transaction will be comitted.

Parameters:
event - The event object

afterCommit

void afterCommit(PBStateEvent event)
Called after a transaction was comitted.

Parameters:
event - The event object

beforeRollback

void beforeRollback(PBStateEvent event)
Called before a transaction will be rolled back.

Parameters:
event - The event object

afterRollback

void afterRollback(PBStateEvent event)
Called after a transaction was rolled back.

Parameters:
event - The event object

beforeClose

void beforeClose(PBStateEvent event)
Called before the PersistenceBroker instance will be returned to the pool.

Parameters:
event - The event object


(C) 2002 - 2006 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30