org.apache.ojb.broker
Interface PersistenceBrokerAware


public interface PersistenceBrokerAware

This interface defines a protocol for persistent objects that want to be aware of the operations of the persistence broker. It defines callback methods that allows implementors to interact with persistence operations.
Non persistent objects could use the PBLifeCycleListener interface to be notified of persistence broker operations.

Version:
$Id: PersistenceBrokerAware.java 365240 2005-12-22 21:14:30Z tomdz $
Author:
Thomas Mahler

Method Summary
 void afterDelete(PersistenceBroker broker)
          Is called as the last operation after an object was deleted in the underlying persistence system.
 void afterInsert(PersistenceBroker broker)
          Is called as the last operation after an object was inserted into the underlying persistence system.
 void afterLookup(PersistenceBroker broker)
          Is called as the last operation after an object was retrieved from the underlying persistence system via a call to the getObjectByXXX() or getCollectionByXXX()/getIteratorByXXX() methods in PersistenceBroker.
 void afterUpdate(PersistenceBroker broker)
          Is called as the last operation after an object was updated in the underlying persistence system.
 void beforeDelete(PersistenceBroker broker)
          Is called as the first operation before an object is deleted in the underlying persistence system.
 void beforeInsert(PersistenceBroker broker)
          Is called as the first operation before an object is inserted into the underlying persistence system.
 void beforeUpdate(PersistenceBroker broker)
          Is called as the first operation before an object is updated in the underlying persistence system.
 

Method Detail

beforeUpdate

void beforeUpdate(PersistenceBroker broker)
                  throws PersistenceBrokerException
Is called as the first operation before an object is updated in the underlying persistence system.

Parameters:
broker - The persistence broker performing the persistence operation
Throws:
PersistenceBrokerException

afterUpdate

void afterUpdate(PersistenceBroker broker)
                 throws PersistenceBrokerException
Is called as the last operation after an object was updated in the underlying persistence system.

Parameters:
broker - The persistence broker performed the persistence operation
Throws:
PersistenceBrokerException

beforeInsert

void beforeInsert(PersistenceBroker broker)
                  throws PersistenceBrokerException
Is called as the first operation before an object is inserted into the underlying persistence system.

Parameters:
broker - The persistence broker performing the persistence operation
Throws:
PersistenceBrokerException

afterInsert

void afterInsert(PersistenceBroker broker)
                 throws PersistenceBrokerException
Is called as the last operation after an object was inserted into the underlying persistence system.

Parameters:
broker - The persistence broker performing the persistence operation
Throws:
PersistenceBrokerException

beforeDelete

void beforeDelete(PersistenceBroker broker)
                  throws PersistenceBrokerException
Is called as the first operation before an object is deleted in the underlying persistence system.

Parameters:
broker - The persistence broker performing the persistence operation
Throws:
PersistenceBrokerException

afterDelete

void afterDelete(PersistenceBroker broker)
                 throws PersistenceBrokerException
Is called as the last operation after an object was deleted in the underlying persistence system.

Parameters:
broker - The persistence broker performing the persistence operation
Throws:
PersistenceBrokerException

afterLookup

void afterLookup(PersistenceBroker broker)
                 throws PersistenceBrokerException
Is called as the last operation after an object was retrieved from the underlying persistence system via a call to the getObjectByXXX() or getCollectionByXXX()/getIteratorByXXX() methods in PersistenceBroker.

Parameters:
broker - The persistence broker performing the persistence operation
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