|
|||||||||
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 must be
aware of the operations of the PersistenceBroker.
It defines callback methods that allows implementors to interact with
persistence operations.
Non persistent objects could use the PBLifeCycleListener
to be notified on PersistenceBroker operations.
Method Summary | |
void |
afterDelete(PersistenceBroker broker)
this method is called as the last operation within a call to PersistenceBroker.delete(...). |
void |
afterInsert(PersistenceBroker broker)
this method is called as the last operation within an insert operation. |
void |
afterLookup(PersistenceBroker broker)
this method is called as the last operation within a call to PersistenceBroker.getObjectByXXX() or PersistenceBroker.getCollectionByXXX(). |
void |
afterUpdate(PersistenceBroker broker)
this method is called as the last operation within an update operation. |
void |
beforeDelete(PersistenceBroker broker)
this method is called as the first operation within a call to PersistenceBroker.delete(...). |
void |
beforeInsert(PersistenceBroker broker)
this method is called as the first operation before perform an object insert. |
void |
beforeUpdate(PersistenceBroker broker)
this method is called as the first operation before perform an object update. |
Method Detail |
public void beforeUpdate(PersistenceBroker broker) throws PersistenceBrokerException
PersistenceBrokerException
public void afterUpdate(PersistenceBroker broker) throws PersistenceBrokerException
PersistenceBrokerException
public void beforeInsert(PersistenceBroker broker) throws PersistenceBrokerException
PersistenceBrokerException
public void afterInsert(PersistenceBroker broker) throws PersistenceBrokerException
PersistenceBrokerException
public void beforeDelete(PersistenceBroker broker) throws PersistenceBrokerException
PersistenceBrokerException
public void afterDelete(PersistenceBroker broker) throws PersistenceBrokerException
PersistenceBrokerException
public void afterLookup(PersistenceBroker broker) throws PersistenceBrokerException
PersistenceBrokerException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |