Purpose: Provides an empty implementation of DescriptorEventListener. Users who do not require the full DescritorEventListener API can subclass this class and implement only the methods required.
DescriptorEventManager, DescriptorEvent
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | aboutToDelete(DescriptorEvent event)
Implements org. |
| public void | aboutToInsert(DescriptorEvent event)
Implements org. |
| public void | aboutToUpdate(DescriptorEvent event)
Implements org. |
| public boolean | isOverriddenEvent(DescriptorEvent event, List<DescriptorEventManager> eventManagers)
Implements org. |
| public void | postBuild(DescriptorEvent event)
Implements org. |
| public void | postClone(DescriptorEvent event)
Implements org. |
| public void | postDelete(DescriptorEvent event)
Implements org. |
| public void | postInsert(DescriptorEvent event)
Implements org. |
| public void | postMerge(DescriptorEvent event)
Implements org. |
| public void | postRefresh(DescriptorEvent event)
Implements org. |
| public void | postUpdate(DescriptorEvent event)
Implements org. |
| public void | postWrite(DescriptorEvent event)
Implements org. |
| public void | preDelete(DescriptorEvent event)
Implements org. |
| public void | preInsert(DescriptorEvent event)
Implements org. |
| public void | prePersist(DescriptorEvent event)
Implements org. |
| public void | preRemove(DescriptorEvent event)
Implements org. |
| public void | preUpdate(DescriptorEvent event)
Implements org. |
| public void | preUpdateWithChanges(DescriptorEvent event)
Implements org. |
| public void | preWrite(DescriptorEvent event)
Implements org. |
| DescriptorEventAdapter | back to summary |
|---|---|
| public DescriptorEventAdapter() | |
| aboutToDelete | back to summary |
|---|---|
| public void aboutToDelete(DescriptorEvent event) Implements org. Doc from org. This event is raised before an object is deleted from the database. The object's row has already been built and is accessible from the event. This event can be used to amend an object's delete row.
| |
| aboutToInsert | back to summary |
|---|---|
| public void aboutToInsert(DescriptorEvent event) Implements org. Doc from org. This event is raised before a new object is inserted to the database. The object's row has already been built and is accessible from the event. This event can be used to amend an object's insert row.
| |
| aboutToUpdate | back to summary |
|---|---|
| public void aboutToUpdate(DescriptorEvent event) Implements org. Doc from org. This event is raised before an object is updated in the database. This event is only raised for object's that have changes and will be updated. The object's row has already been built and is accessible from the event. This event can be used to amend an object's update row.
| |
| isOverriddenEvent | back to summary |
|---|---|
| public boolean isOverriddenEvent(DescriptorEvent event, List<DescriptorEventManager> eventManagers) Implements org. Doc from org. Implementers should define this method if they need or want to restrict the calling of inherited events.
| |
| postBuild | back to summary |
|---|---|
| public void postBuild(DescriptorEvent event) Implements org. Doc from org. This event is raised after an object is built from its row on a read operation. This event can be used to initialize non-persistent or non-mapped state in the object.
| |
| postClone | back to summary |
|---|---|
| public void postClone(DescriptorEvent event) Implements org. Doc from org. This event is raised after an object is cloned into a unit of work. This event can be used to initialize non-mapped state in the object. The event source/object is the unit of work clone, the event originalObject is the original object from the session cache.
| |
| postDelete | back to summary |
|---|---|
| public void postDelete(DescriptorEvent event) Implements org. Doc from org. This event is raised after an object is deleted from the database.
| |
| postInsert | back to summary |
|---|---|
| public void postInsert(DescriptorEvent event) Implements org. Doc from org. This event is raised after an object is inserted to the database.
| |
| postMerge | back to summary |
|---|---|
| public void postMerge(DescriptorEvent event) Implements org. Doc from org. This event is raised after an object is merged from a unit of work into its parent. This event can be used to initialize non-mapped state in the parent object. The event source/object is the parent session object that was merged into, the event originalObject is the unit of work clone that was merged from.
| |
| postRefresh | back to summary |
|---|---|
| public void postRefresh(DescriptorEvent event) Implements org. Doc from org. This event is raised after an object is refreshed from its row on a refresh operation. This event can be used to initialize non-persistent or non-mapped state in the object.
| |
| postUpdate | back to summary |
|---|---|
| public void postUpdate(DescriptorEvent event) Implements org. Doc from org. This event is raised after an object updated in the database. This event is only raised for objects that had changes and were updated.
| |
| postWrite | back to summary |
|---|---|
| public void postWrite(DescriptorEvent event) Implements org. Doc from org. This event is raised after an object is inserted or updated in the database. This event is only raised for new objects or objects that had changes and were updated.
| |
| preDelete | back to summary |
|---|---|
| public void preDelete(DescriptorEvent event) Implements org. Doc from org. This event is raised before an object is deleted from the database.
| |
| preInsert | back to summary |
|---|---|
| public void preInsert(DescriptorEvent event) Implements org. Doc from org. This event is raised before an object is inserted to the database.
| |
| prePersist | back to summary |
|---|---|
| public void prePersist(DescriptorEvent event) Implements org. Doc from org. This event is only raised by the EntityManager. It is raised when the create operation is initiated on an object.
| |
| preRemove | back to summary |
|---|---|
| public void preRemove(DescriptorEvent event) Implements org. Doc from org. This event is raised when the remove operation is initiated on an object.
| |
| preUpdate | back to summary |
|---|---|
| public void preUpdate(DescriptorEvent event) Implements org. Doc from org. This event is raised for all existing objects written or committed in a unit of work. This event is raised before the object's changes are computed, so the object may still be modified by the event. If the object has no changes, it will not be updated in a unit of work.
| |
| preUpdateWithChanges | back to summary |
|---|---|
| public void preUpdateWithChanges(DescriptorEvent event) Implements org. Doc from org. This event is raised before an object is updated regardless if the object has any database changes. This event was created to support EJB 3.0 events. The object in this case will not have a row accessible from the event. For objects that have database changes, an aboutToUpdate will also be triggered.
| |
| preWrite | back to summary |
|---|---|
| public void preWrite(DescriptorEvent event) Implements org. Doc from org. This event is raised for all new or existing objects written or committed in a unit of work. This event is raised before the object's changes are computed, so the object may still be modified by the event. If the object is existing and has no changes, it will not be updated in a unit of work.
| |