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