|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
public void beforeUpdate(PersistenceBroker broker) throws PersistenceBrokerException
broker
- The persistence broker performing the persistence operation
PersistenceBrokerException
public void afterUpdate(PersistenceBroker broker) throws PersistenceBrokerException
broker
- The persistence broker performed the persistence operation
PersistenceBrokerException
public void beforeInsert(PersistenceBroker broker) throws PersistenceBrokerException
broker
- The persistence broker performing the persistence operation
PersistenceBrokerException
public void afterInsert(PersistenceBroker broker) throws PersistenceBrokerException
broker
- The persistence broker performing the persistence operation
PersistenceBrokerException
public void beforeDelete(PersistenceBroker broker) throws PersistenceBrokerException
broker
- The persistence broker performing the persistence operation
PersistenceBrokerException
public void afterDelete(PersistenceBroker broker) throws PersistenceBrokerException
broker
- The persistence broker performing the persistence operation
PersistenceBrokerException
public void afterLookup(PersistenceBroker broker) throws PersistenceBrokerException
getObjectByXXX()
or
getCollectionByXXX()
/getIteratorByXXX()
methods in
PersistenceBroker
.
broker
- The persistence broker performing the persistence operation
PersistenceBrokerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |