Purpose: The event manager allows for a descriptor to specify that an object should be notified when a EclipseLink event occurs. It also determines how the object will be notified. To specify an event a method name can be registered to be called on the object when the event occurs. Events can be used to extend the EclipseLink reading and writing behavior.
These events include:
ClassDescriptor
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int | |
| protected transient List | |
| protected ClassDescriptor | |
| protected List | |
| protected transient DescriptorEventListener | |
| protected transient List | |
| protected transient List | |
| protected transient List | |
| protected transient List | |
| protected transient AtomicReferenceArray | |
| protected AtomicReferenceArray | |
| protected boolean | |
| protected boolean | |
| protected boolean | hasAnyEventListeners
PERF: Cache if any events listener exist. |
| protected transient List | internalListeners
Listeners that are fired after all other listeners are fired |
| protected static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public | DescriptorEventManager()
INTERNAL: Returns a new DescriptorEventManager for the specified ClassDescriptor. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addDefaultEventListener(DescriptorEventListener listener)
PUBLIC: EJB 3.0 support for default listeners. |
| public void | addEntityListenerEventListener(DescriptorEventListener listener)
PUBLIC: EJB 3.0 support for lifecycle callback events defined on an entity listener class. |
| public void | |
| public void | |
| public void | addListener(DescriptorEventListener listener)
PUBLIC: Listener objects can be registered with the event manager to be notified when an event occurs on any instance of the descriptor's class. |
| public Object | |
| public boolean | |
| public boolean | |
| public void | executeEvent(DescriptorEvent event)
Implements abstract org. |
| protected Method | |
| public String | getAboutToDeleteSelector()
INTERNAL: bug 251180 - Missing method org.eclipse.persistence.descriptors.DescriptorEventManager#setAboutToDeleteSelector |
| public String | |
| public String | |
| public List | |
| protected ClassDescriptor | |
| public List | getDescriptorEventHolders()
INTERNAL: used by JPA project caching to store DescriptorEventListener representations that can build the underlying DescriptorEventListener and add it to the EventManager. |
| public DescriptorEventListener | |
| public List | |
| public List | |
| protected AtomicReferenceArray | |
| protected AtomicReferenceArray | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | getPrePersistSelector()
PUBLIC: The name of the method called before the create operation is applied to an object |
| public String | getPreRemoveSelector()
PUBLIC: The name of the method called before the remove operation is applied to an object |
| public String | |
| public String | |
| public boolean | hasAnyEventListeners()
Implements abstract org. |
| protected boolean | |
| public boolean | hasDefaultEventListeners()
INTERNAL: This method will return true, if this event manager has default listeners and does not exclude them. |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | |
| protected void | |
| private static <T> AtomicReferenceArray | Returns: initialized instance ofjava.length of the array. length)Create an instance of |
| private static <T> AtomicReferenceArray | Returns: initialized instance ofjava.source array. src)Create an instance of |
| protected void | |
| protected void | notifyListener(DescriptorEventListener listener, DescriptorEvent event)
INTERNAL: Big ugly case statement to notify listeners. |
| public void | |
| public void | processDescriptorEventHolders(AbstractSession session, ClassLoader classLoader)
INTERNAL: This method was added to allow JPA project caching so that DescriptorEventListeners could be serialized and re-added to the EventManager using a SerializableDescriptorEventHolder. |
| public void | remoteInitialization(AbstractSession session)
INTERNAL: Used to initialize a remote DescriptorEventManager. |
| public void | |
| public void | setAboutToDeleteSelector(String aboutToDeleteSelector)
PUBLIC: A method can be registered to be called when an object's row it about to be inserted. |
| public void | setAboutToInsertSelector(String aboutToInsertSelector)
PUBLIC: A method can be registered to be called when an object's row it about to be inserted. |
| public void | setAboutToUpdateSelector(String aboutToUpdateSelector)
PUBLIC: A method can be registered to be called when an object's row it about to be updated. |
| public void | |
| public void | setDescriptorEventHolders(List<SerializableDescriptorEventHolder> descriptorEventHolders)
INTERNAL: used by JPA project caching to store DescriptorEventListener representations that can build the underlying DescriptorEventListener and add it to the EventManager. |
| public void | setEntityEventListener(DescriptorEventListener listener)
PUBLIC: EJB 3.0 support for lifecycle callback events defined on an entity class. |
| protected void | |
| protected void | |
| protected void | |
| public void | |
| public void | |
| protected void | setHasAnyEventListeners(boolean hasAnyEventListeners)
INTERNAL: Set if the event manager has any event listeners, or event methods. |
| public void | setPostBuildSelector(String postBuildSelector)
PUBLIC: A method can be registered to be called on a object that has just been built from the database. |
| public void | setPostCloneSelector(String postCloneSelector)
PUBLIC: A method can be registered to be called on a object that has just been cloned into a unit of work. |
| public void | setPostDeleteSelector(String postDeleteSelector)
PUBLIC: A method can be registered to be called on a object that has just been deleted from the database. |
| public void | setPostInsertSelector(String postInsertSelector)
PUBLIC: A method can be registered to be called on a object that has just been inserted into the database. |
| public void | setPostMergeSelector(String postMergeSelector)
PUBLIC: A method can be registered to be called on a object that has just been merge from a unit of work. |
| public void | setPostRefreshSelector(String postRefreshSelector)
PUBLIC: A method can be registered to be called on a object that has just been refreshed from the database. |
| public void | setPostUpdateSelector(String postUpdateSelector)
PUBLIC: A method can be registered to be called on a object that has just been updated into the database. |
| public void | setPostWriteSelector(String postWriteSelector)
PUBLIC: A method can be registered to be called on a object that has just been written to the database. |
| public void | setPreDeleteSelector(String preDeleteSelector)
PUBLIC: A method can be registered to be called on a object that is going to be deleted from the database. |
| public void | setPreInsertSelector(String preInsertSelector)
PUBLIC: A method can be registered to be called on a object that is going to be inserted into the database. |
| public void | setPrePersistSelector(String prePersistSelector)
PUBLIC: A method can be registered to be called on a object when that object has the create operation applied to it. |
| public void | setPreRemoveSelector(String preRemoveSelector)
PUBLIC: A method can be registered to be called on a object when that object has the remove operation applied to it. |
| public void | setPreUpdateSelector(String preUpdateSelector)
PUBLIC: A method can be registered to be called on a object that is going to be updated into the database. |
| public void | setPreWriteSelector(String preWriteSelector)
PUBLIC: A method can be registered to be called on a object that is going to be written to the database. |
| AboutToDeleteEvent | back to summary |
|---|---|
| public static final int AboutToDeleteEvent | |
| AboutToInsertEvent | back to summary |
|---|---|
| public static final int AboutToInsertEvent | |
| AboutToUpdateEvent | back to summary |
|---|---|
| public static final int AboutToUpdateEvent | |
| defaultEventListeners | back to summary |
|---|---|
| protected transient List<DescriptorEventListener> defaultEventListeners | |
| descriptor | back to summary |
|---|---|
| protected ClassDescriptor descriptor | |
| descriptorEventHolders | back to summary |
|---|---|
| protected List<SerializableDescriptorEventHolder> descriptorEventHolders | |
| entityEventListener | back to summary |
|---|---|
| protected transient DescriptorEventListener entityEventListener | |
| entityEventManagers | back to summary |
|---|---|
| protected transient List<DescriptorEventManager> entityEventManagers | |
| entityListenerEventListeners | back to summary |
|---|---|
| protected transient List<DescriptorEventListener> entityListenerEventListeners | |
| entityListenerEventManagers | back to summary |
|---|---|
| protected transient List<DescriptorEventManager> entityListenerEventManagers | |
| eventListeners | back to summary |
|---|---|
| protected transient List<DescriptorEventListener> eventListeners | |
| eventMethods | back to summary |
|---|---|
| protected transient AtomicReferenceArray<Method> eventMethods | |
| eventSelectors | back to summary |
|---|---|
| protected AtomicReferenceArray<String> eventSelectors | |
| excludeDefaultListeners | back to summary |
|---|---|
| protected boolean excludeDefaultListeners | |
| excludeSuperclassListeners | back to summary |
|---|---|
| protected boolean excludeSuperclassListeners | |
| hasAnyEventListeners | back to summary |
|---|---|
| protected boolean hasAnyEventListeners PERF: Cache if any events listener exist. | |
| internalListeners | back to summary |
|---|---|
| protected transient List<DescriptorEventListener> internalListeners Listeners that are fired after all other listeners are fired | |
| NumberOfEvents | back to summary |
|---|---|
| protected static final int NumberOfEvents | |
| PostBuildEvent | back to summary |
|---|---|
| public static final int PostBuildEvent | |
| PostCloneEvent | back to summary |
|---|---|
| public static final int PostCloneEvent | |
| PostDeleteEvent | back to summary |
|---|---|
| public static final int PostDeleteEvent | |
| PostInsertEvent | back to summary |
|---|---|
| public static final int PostInsertEvent | |
| PostMergeEvent | back to summary |
|---|---|
| public static final int PostMergeEvent | |
| PostRefreshEvent | back to summary |
|---|---|
| public static final int PostRefreshEvent | |
| PostUpdateEvent | back to summary |
|---|---|
| public static final int PostUpdateEvent | |
| PostWriteEvent | back to summary |
|---|---|
| public static final int PostWriteEvent | |
| PreDeleteEvent | back to summary |
|---|---|
| public static final int PreDeleteEvent | |
| PreInsertEvent | back to summary |
|---|---|
| public static final int PreInsertEvent | |
| PrePersistEvent | back to summary |
|---|---|
| public static final int PrePersistEvent | |
| PreRemoveEvent | back to summary |
|---|---|
| public static final int PreRemoveEvent | |
| PreUpdateEvent | back to summary |
|---|---|
| public static final int PreUpdateEvent | |
| PreUpdateWithChangesEvent | back to summary |
|---|---|
| public static final int PreUpdateWithChangesEvent | |
| PreWriteEvent | back to summary |
|---|---|
| public static final int PreWriteEvent | |
| DescriptorEventManager | back to summary |
|---|---|
| public DescriptorEventManager() INTERNAL: Returns a new DescriptorEventManager for the specified ClassDescriptor. | |
| addDefaultEventListener | back to summary |
|---|---|
| public void addDefaultEventListener(DescriptorEventListener listener) PUBLIC: EJB 3.0 support for default listeners. | |
| addEntityListenerEventListener | back to summary |
|---|---|
| public void addEntityListenerEventListener(DescriptorEventListener listener) PUBLIC: EJB 3.0 support for lifecycle callback events defined on an entity listener class. | |
| addEntityListenerHolder | back to summary |
|---|---|
| public void addEntityListenerHolder(SerializableDescriptorEventHolder holder) INTERNAL: | |
| addInternalListener | back to summary |
|---|---|
| public void addInternalListener(DescriptorEventListener listener) INTERNAL: | |
| addListener | back to summary |
|---|---|
| public void addListener(DescriptorEventListener listener) PUBLIC: Listener objects can be registered with the event manager to be notified when an event occurs on any instance of the descriptor's class. | |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. INTERNAL: Clone the manager and its private parts.
| |
| excludeDefaultListeners | back to summary |
|---|---|
| public boolean excludeDefaultListeners() INTERNAL: EJB 3.0 support. Returns true if this event manager should exclude the invocation of the default listeners for this descriptor. | |
| excludeSuperclassListeners | back to summary |
|---|---|
| public boolean excludeSuperclassListeners() INTERNAL: EJB 3.0 support. Returns true is this event manager should exclude the invocation of the listeners defined by the entity listener classes for the superclasses of this descriptor. | |
| executeEvent | back to summary |
|---|---|
| public void executeEvent(DescriptorEvent event) throws DescriptorException Implements abstract org. INTERNAL: Execute the given selector with the event as argument.
| |
| findMethod | back to summary |
|---|---|
| protected Method findMethod(int selector) throws DescriptorException Find the method corresponding to the event selector. The method MUST take DescriptorEvent as argument, Session is also supported as argument for backward compatibility. | |
| getAboutToDeleteSelector | back to summary |
|---|---|
| public String getAboutToDeleteSelector() INTERNAL: bug 251180 - Missing method org.eclipse.persistence.descriptors.DescriptorEventManager#setAboutToDeleteSelector | |
| getAboutToInsertSelector | back to summary |
|---|---|
| public String getAboutToInsertSelector() INTERNAL: | |
| getAboutToUpdateSelector | back to summary |
|---|---|
| public String getAboutToUpdateSelector() INTERNAL: | |
| getDefaultEventListeners | back to summary |
|---|---|
| public List INTERNAL: EJB 3.0 support. Returns the default listeners. | |
| getDescriptor | back to summary |
|---|---|
| protected ClassDescriptor getDescriptor() INTERNAL: | |
| getDescriptorEventHolders | back to summary |
|---|---|
| public List INTERNAL: used by JPA project caching to store DescriptorEventListener representations that can build the underlying DescriptorEventListener and add it to the EventManager. | |
| getEntityEventListener | back to summary |
|---|---|
| public DescriptorEventListener getEntityEventListener() INTERNAL: EJB 3.0 support. Returns the entity event listener. | |
| getEntityListenerEventListeners | back to summary |
|---|---|
| public List INTERNAL: EJB 3.0 support. Returns the entity listener event listeners. | |
| getEventListeners | back to summary |
|---|---|
| public List PUBLIC: Returns the Listener objects that have been added.
| |
| getEventMethods | back to summary |
|---|---|
| protected AtomicReferenceArray | |
| getEventSelectors | back to summary |
|---|---|
| protected AtomicReferenceArray | |
| getPostBuildSelector | back to summary |
|---|---|
| public String getPostBuildSelector() PUBLIC: The name of the method called after an object is built | |
| getPostCloneSelector | back to summary |
|---|---|
| public String getPostCloneSelector() PUBLIC: The name of the method called after an object is cloned | |
| getPostDeleteSelector | back to summary |
|---|---|
| public String getPostDeleteSelector() PUBLIC: The name of the method called after an object is deleted | |
| getPostInsertSelector | back to summary |
|---|---|
| public String getPostInsertSelector() PUBLIC: The name of the method called after an object is inserted | |
| getPostMergeSelector | back to summary |
|---|---|
| public String getPostMergeSelector() PUBLIC: The name of the method called after an object is merged | |
| getPostRefreshSelector | back to summary |
|---|---|
| public String getPostRefreshSelector() PUBLIC: The name of the method called after an object is refreshed | |
| getPostUpdateSelector | back to summary |
|---|---|
| public String getPostUpdateSelector() PUBLIC: The name of the method called after an object is updated | |
| getPostWriteSelector | back to summary |
|---|---|
| public String getPostWriteSelector() PUBLIC: The name of the method called after an object is written | |
| getPreDeleteSelector | back to summary |
|---|---|
| public String getPreDeleteSelector() PUBLIC: The name of the method called before an object is deleted | |
| getPreInsertSelector | back to summary |
|---|---|
| public String getPreInsertSelector() PUBLIC: The name of the method called before an object is inserted | |
| getPrePersistSelector | back to summary |
|---|---|
| public String getPrePersistSelector() PUBLIC: The name of the method called before the create operation is applied to an object | |
| getPreRemoveSelector | back to summary |
|---|---|
| public String getPreRemoveSelector() PUBLIC: The name of the method called before the remove operation is applied to an object | |
| getPreUpdateSelector | back to summary |
|---|---|
| public String getPreUpdateSelector() PUBLIC: The name of the method called before an object is updated | |
| getPreWriteSelector | back to summary |
|---|---|
| public String getPreWriteSelector() PUBLIC: The name of the method called before an object is written | |
| hasAnyEventListeners | back to summary |
|---|---|
| public boolean hasAnyEventListeners() Implements abstract org. INTERNAL: Return if the event manager has any event listeners, or event methods. If nothing is listening to event they can be avoided.
| |
| hasAnyListeners | back to summary |
|---|---|
| protected boolean hasAnyListeners() | |
| hasDefaultEventListeners | back to summary |
|---|---|
| public boolean hasDefaultEventListeners() INTERNAL: This method will return true, if this event manager has default listeners and does not exclude them. Default listeners are always added to every event manager to allow users to turn them on a later time if so desired. | |
| hasEntityEventListener | back to summary |
|---|---|
| public boolean hasEntityEventListener() INTERNAL: EJB 3.0 support. Return true if this event manager has any entity event listeners. | |
| hasEntityListenerEventListeners | back to summary |
|---|---|
| public boolean hasEntityListenerEventListeners() INTERNAL: EJB 3.0 support. Return true if this event manager has any entity listener event listeners. | |
| hasInternalEventListeners | back to summary |
|---|---|
| public boolean hasInternalEventListeners() INTERNAL: Internal event support. Return true if this event manager has any internal listener event listeners. | |
| initialize | back to summary |
|---|---|
| public void initialize(AbstractSession session) INTERNAL: Configure inherited selectors. | |
| initializeEJB30EventManagers | back to summary |
|---|---|
| protected void initializeEJB30EventManagers() INTERNAL: EJB 3.0 support. Builds our chains of descriptor event managers that will need to be notified. The chains are cache so we only need to build them once. | |
| newAtomicReferenceArray | back to summary |
|---|---|
| private static <T> AtomicReferenceArray Create an instance of
| |
| newAtomicReferenceArray | back to summary |
|---|---|
| private static <T> AtomicReferenceArray Create an instance of
| |
| notifyEJB30Listeners | back to summary |
|---|---|
| protected void notifyEJB30Listeners(DescriptorEvent event) INTERNAL: Notify the EJB 3.0 event listeners. | |
| notifyListener | back to summary |
|---|---|
| protected void notifyListener(DescriptorEventListener listener, DescriptorEvent event) throws DescriptorException INTERNAL: Big ugly case statement to notify listeners. | |
| notifyListeners | back to summary |
|---|---|
| public void notifyListeners(DescriptorEvent event) INTERNAL: Notify the event listeners. | |
| processDescriptorEventHolders | back to summary |
|---|---|
| public void processDescriptorEventHolders(AbstractSession session, ClassLoader classLoader) INTERNAL: This method was added to allow JPA project caching so that DescriptorEventListeners could be serialized and re-added to the EventManager using a SerializableDescriptorEventHolder. | |
| remoteInitialization | back to summary |
|---|---|
| public void remoteInitialization(AbstractSession session) INTERNAL: Used to initialize a remote DescriptorEventManager. | |
| removeListener | back to summary |
|---|---|
| public void removeListener(DescriptorEventListener listener) PUBLIC: Remove a event listener. | |
| setAboutToDeleteSelector | back to summary |
|---|---|
| public void setAboutToDeleteSelector(String aboutToDeleteSelector) PUBLIC: A method can be registered to be called when an object's row it about to be inserted. This uses the optional event argument of the DatabaseRow. This is different from pre/postInsert because it occurs after the row has already been built. This event can be used to modify the row before insert, such as adding a user inserted by. | |
| setAboutToInsertSelector | back to summary |
|---|---|
| public void setAboutToInsertSelector(String aboutToInsertSelector) PUBLIC: A method can be registered to be called when an object's row it about to be inserted. This uses the optional event argument of the DatabaseRow. This is different from pre/postInsert because it occurs after the row has already been built. This event can be used to modify the row before insert, such as adding a user inserted by. | |
| setAboutToUpdateSelector | back to summary |
|---|---|
| public void setAboutToUpdateSelector(String aboutToUpdateSelector) PUBLIC: A method can be registered to be called when an object's row it about to be updated. This uses the optional event argument of the DatabaseRow. This is different from pre/postUpdate because it occurs after the row has already been built, and it ONLY called if the update is required (changed within a unit of work), as the other occur ALWAYS. This event can be used to modify the row before insert, such as adding a user inserted by. | |
| setDescriptor | back to summary |
|---|---|
| public void setDescriptor(ClassDescriptor descriptor) INTERNAL: Set the descriptor. | |
| setDescriptorEventHolders | back to summary |
|---|---|
| public void setDescriptorEventHolders(List<SerializableDescriptorEventHolder> descriptorEventHolders) INTERNAL: used by JPA project caching to store DescriptorEventListener representations that can build the underlying DescriptorEventListener and add it to the EventManager. | |
| setEntityEventListener | back to summary |
|---|---|
| public void setEntityEventListener(DescriptorEventListener listener) PUBLIC: EJB 3.0 support for lifecycle callback events defined on an entity class. | |
| setEventListeners | back to summary |
|---|---|
| protected void setEventListeners(List<DescriptorEventListener> eventListeners) | |
| setEventMethods | back to summary |
|---|---|
| protected void setEventMethods(AtomicReferenceArray<Method> eventMethods) | |
| setEventSelectors | back to summary |
|---|---|
| protected void setEventSelectors(AtomicReferenceArray<String> eventSelectors) | |
| setExcludeDefaultListeners | back to summary |
|---|---|
| public void setExcludeDefaultListeners(boolean excludeDefaultListeners) INTERNAL: EJB 3.0 support. Default listeners apply to all entities in a persistence unit. Set this flag to true to exclude the invocation of the default listeners for this descriptor. | |
| setExcludeSuperclassListeners | back to summary |
|---|---|
| public void setExcludeSuperclassListeners(boolean excludeSuperclassListeners) INTERNAL: EJB 3.0 support. If multiple entity classes in an inheritance hierarchy define entity listeners, the listeners defined for a superclass are invoked before the listeners defined for its subclasses. Set this flag to true to exclude the invocation of the listeners defined by the entity listener classes for the superclasses of this descriptor. | |
| setHasAnyEventListeners | back to summary |
|---|---|
| protected void setHasAnyEventListeners(boolean hasAnyEventListeners) INTERNAL: Set if the event manager has any event listeners, or event methods. If nothing is listening to event they can be avoided. | |
| setPostBuildSelector | back to summary |
|---|---|
| public void setPostBuildSelector(String postBuildSelector) PUBLIC: A method can be registered to be called on a object that has just been built from the database. This uses the optional event argument for the DatabaseRow. This event can be used to correctly initialize an object's non-persistent attributes or to perform complex optimizations or mappings. This event is called whenever an object is built. | |
| setPostCloneSelector | back to summary |
|---|---|
| public void setPostCloneSelector(String postCloneSelector) PUBLIC: A method can be registered to be called on a object that has just been cloned into a unit of work. This uses the optional event argument for the original object (the source object is the clone). This event can be used to correctly initialize an object's non-persistent attributes. | |
| setPostDeleteSelector | back to summary |
|---|---|
| public void setPostDeleteSelector(String postDeleteSelector) PUBLIC: A method can be registered to be called on a object that has just been deleted from the database. This event can notify/remove any dependents on the object. | |
| setPostInsertSelector | back to summary |
|---|---|
| public void setPostInsertSelector(String postInsertSelector) PUBLIC: A method can be registered to be called on a object that has just been inserted into the database. This event can be used to notify any dependent on the object, or to update information not accessible until the object has been inserted. | |
| setPostMergeSelector | back to summary |
|---|---|
| public void setPostMergeSelector(String postMergeSelector) PUBLIC: A method can be registered to be called on a object that has just been merge from a unit of work. This uses the optional event argument of the original object which is the object being merged from, the source object is the object being merged into. This event can be used to correctly initialize an object's non-persistent attributes. | |
| setPostRefreshSelector | back to summary |
|---|---|
| public void setPostRefreshSelector(String postRefreshSelector) PUBLIC: A method can be registered to be called on a object that has just been refreshed from the database. This uses the optional event argument of the DatabaseRow. This event can be used to correctly initialize an object's non-persistent attributes or to perform complex optimizations or mappings. This event is only called on refreshes of existing objects. | |
| setPostUpdateSelector | back to summary |
|---|---|
| public void setPostUpdateSelector(String postUpdateSelector) PUBLIC: A method can be registered to be called on a object that has just been updated into the database. | |
| setPostWriteSelector | back to summary |
|---|---|
| public void setPostWriteSelector(String postWriteSelector) PUBLIC: A method can be registered to be called on a object that has just been written to the database. This event is raised on any registered object in a unit of work, even if it has not changed, refer to the "aboutToUpdate" selector if it is required for the event to be raised only when the object has been changed. This will be called on all inserts and updates, after the "postInsert/Update" event has been raised. This event can be used to notify any dependent on the object. | |
| setPreDeleteSelector | back to summary |
|---|---|
| public void setPreDeleteSelector(String preDeleteSelector) PUBLIC: A method can be registered to be called on a object that is going to be deleted from the database. This event can notify/remove any dependents on the object. | |
| setPreInsertSelector | back to summary |
|---|---|
| public void setPreInsertSelector(String preInsertSelector) PUBLIC: A method can be registered to be called on a object that is going to be inserted into the database. This event can be used to notify any dependent on the object or acquire the object's id through a custom mechanism. | |
| setPrePersistSelector | back to summary |
|---|---|
| public void setPrePersistSelector(String prePersistSelector) PUBLIC: A method can be registered to be called on a object when that object has the create operation applied to it. | |
| setPreRemoveSelector | back to summary |
|---|---|
| public void setPreRemoveSelector(String preRemoveSelector) PUBLIC: A method can be registered to be called on a object when that object has the remove operation applied to it. | |
| setPreUpdateSelector | back to summary |
|---|---|
| public void setPreUpdateSelector(String preUpdateSelector) PUBLIC: A method can be registered to be called on a object that is going to be updated into the database. This event is raised on any registered object in a unit of work, even if it has not changed, refer to the "aboutToUpdate" selector if it is required for the event to be raised only when the object has been changed. This event can be used to notify any dependent on the object. | |
| setPreWriteSelector | back to summary |
|---|---|
| public void setPreWriteSelector(String preWriteSelector) PUBLIC: A method can be registered to be called on a object that is going to be written to the database. This event is raised on any registered object in a unit of work, even if it has not changed, refer to the "aboutToUpdate" selector if it is required for the event to be raised only when the object has been changed. This will be called on all inserts and updates, before the "preInsert/Update" event has been raised. This event can be used to notify any dependent on the object. | |