|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DescriptorEventListener
Purpose: Used to support Java event listener event model on descriptors. Events can be registered for, through two methods, the first is by providing a method to be called on the object that a particular operation is being performed on. The second is by registering an event listener object to be notified when any event occurs for that descriptor. The second method is more similar to the java beans event model and requires the registered listener to implement the DescriptorEventListener interface.
DescriptorEventAdapter
,
DescriptorEventManager
,
DescriptorEvent
Method Summary | |
---|---|
void |
aboutToDelete(DescriptorEvent event)
This event is raised before an object is deleted from the database. |
void |
aboutToInsert(DescriptorEvent event)
This event is raised before a new object is inserted to the database. |
void |
aboutToUpdate(DescriptorEvent event)
This event is raised before an object is updated in the database. |
boolean |
isOverriddenEvent(DescriptorEvent event,
java.util.Vector eventManagers)
Implementers should define this method if they need or want to restrict the calling of inherited events. |
void |
postBuild(DescriptorEvent event)
This event is raised after an object is built from its row on a read operation. |
void |
postClone(DescriptorEvent event)
This event is raised after an object is cloned into a unit of work. |
void |
postDelete(DescriptorEvent event)
This event is raised after an object is deleted from the database. |
void |
postInsert(DescriptorEvent event)
This event is raised after an object is inserted to the database. |
void |
postMerge(DescriptorEvent event)
This event is raised after an object is merged from a unit of work into its parent. |
void |
postRefresh(DescriptorEvent event)
This event is raised after an object is refreshed from its row on a refresh operation. |
void |
postUpdate(DescriptorEvent event)
This event is raised after an object updated in the database. |
void |
postWrite(DescriptorEvent event)
This event is raised after an object is inserted or updated in the database. |
void |
preDelete(DescriptorEvent event)
This event is raised before an object is deleted from the database. |
void |
preInsert(DescriptorEvent event)
This event is raised before an object is inserted to the database. |
void |
prePersist(DescriptorEvent event)
This event is only raised by the EntityManager. |
void |
preRemove(DescriptorEvent event)
This event is raised when the remove operation is initiated on an object. |
void |
preUpdate(DescriptorEvent event)
This event is raised for all existing objects written or committed in a unit of work. |
void |
preUpdateWithChanges(DescriptorEvent event)
This event is raised before an object is updated regardless if the object has any database changes. |
void |
preWrite(DescriptorEvent event)
This event is raised for all new or existing objects written or committed in a unit of work. |
Method Detail |
---|
void aboutToDelete(DescriptorEvent event)
void aboutToInsert(DescriptorEvent event)
void aboutToUpdate(DescriptorEvent event)
boolean isOverriddenEvent(DescriptorEvent event, java.util.Vector eventManagers)
void postBuild(DescriptorEvent event)
void postClone(DescriptorEvent event)
void postDelete(DescriptorEvent event)
void postInsert(DescriptorEvent event)
void postMerge(DescriptorEvent event)
void postRefresh(DescriptorEvent event)
void postUpdate(DescriptorEvent event)
void postWrite(DescriptorEvent event)
void preDelete(DescriptorEvent event)
void preInsert(DescriptorEvent event)
void prePersist(DescriptorEvent event)
void preRemove(DescriptorEvent event)
void preUpdate(DescriptorEvent event)
void preUpdateWithChanges(DescriptorEvent event)
void preWrite(DescriptorEvent event)
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |