org.apache.ojb.broker
Interface PBLifeCycleListener

All Superinterfaces:
PBListener

public interface PBLifeCycleListener
extends PBListener

The listener interface for receiving persistent object life cycle information. This interface is intended for non persistent objects which want to track persistent object life cycle.
NOTE:
Persistent objects should implement the PersistenceBrokerAware interface to be notified on persistent method calls via callback.

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

Method Summary
 void afterDelete(PBLifeCycleEvent event)
          Called after an object has been deleted by a persistence broker.
 void afterInsert(PBLifeCycleEvent event)
          Called after an object instance has been stored by a persistence broker.
 void afterLookup(PBLifeCycleEvent event)
          Called after an object has been looked up by a persistence broker.
 void afterUpdate(PBLifeCycleEvent event)
          Called after an object has been stored by a persistence broker.
 void beforeDelete(PBLifeCycleEvent event)
          Called before an object will be deleted by a persistence broker.
 void beforeInsert(PBLifeCycleEvent event)
          Called before an object will be stored by a persistence broker.
 void beforeUpdate(PBLifeCycleEvent event)
          Called before an object will be updated by a persistence broker.
 

Method Detail

beforeInsert

void beforeInsert(PBLifeCycleEvent event)
                  throws PersistenceBrokerException
Called before an object will be stored by a persistence broker.

Parameters:
event - The event object
Throws:
PersistenceBrokerException

afterInsert

void afterInsert(PBLifeCycleEvent event)
                 throws PersistenceBrokerException
Called after an object instance has been stored by a persistence broker.

Parameters:
event - The event object
Throws:
PersistenceBrokerException

beforeUpdate

void beforeUpdate(PBLifeCycleEvent event)
                  throws PersistenceBrokerException
Called before an object will be updated by a persistence broker.

Parameters:
event - The event object
Throws:
PersistenceBrokerException

afterUpdate

void afterUpdate(PBLifeCycleEvent event)
                 throws PersistenceBrokerException
Called after an object has been stored by a persistence broker.

Parameters:
event - The event object
Throws:
PersistenceBrokerException

beforeDelete

void beforeDelete(PBLifeCycleEvent event)
                  throws PersistenceBrokerException
Called before an object will be deleted by a persistence broker.

Parameters:
event - The event object
Throws:
PersistenceBrokerException

afterDelete

void afterDelete(PBLifeCycleEvent event)
                 throws PersistenceBrokerException
Called after an object has been deleted by a persistence broker.

Parameters:
event - The event object
Throws:
PersistenceBrokerException

afterLookup

void afterLookup(PBLifeCycleEvent event)
                 throws PersistenceBrokerException
Called after an object has been looked up by a persistence broker.

Parameters:
event - The event object
Throws:
PersistenceBrokerException


(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