/** * PUBLIC: * The name of the method called before an object is deleted */ public String getPreDeleteSelector() { return getEventSelectors().get(PreDeleteEvent); }
/** * PUBLIC: * The name of the method called before an object is written */ public String getPreWriteSelector() { return getEventSelectors().get(PreWriteEvent); }
/** * PUBLIC: * The name of the method called before the create operation is applied to an object */ public String getPrePersistSelector() { return (String)getEventSelectors().elementAt(PrePersistEvent); }
/** * PUBLIC: * The name of the method called before an object is inserted */ public String getPreInsertSelector() { return (String)getEventSelectors().elementAt(PreInsertEvent); }
/** * 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. */ public void setPostCloneSelector(String postCloneSelector) { getEventSelectors().setElementAt(postCloneSelector, PostCloneEvent); }
/** * PUBLIC: * A method can be registered to be called on a object that has just been * updated into the database. */ public void setPostUpdateSelector(String postUpdateSelector) { getEventSelectors().setElementAt(postUpdateSelector, PostUpdateEvent); }
/** * 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. */ public void setPreDeleteSelector(String preDeleteSelector) { getEventSelectors().setElementAt(preDeleteSelector, PreDeleteEvent); }
/** * PUBLIC: * The name of the method called after an object is built */ public String getPostBuildSelector() { return (String)getEventSelectors().elementAt(PostBuildEvent); }
/** * PUBLIC: * The name of the method called before an object is inserted */ public String getPreInsertSelector() { return (String)getEventSelectors().elementAt(PreInsertEvent); }
/** * PUBLIC: * The name of the method called before the remove operation is applied to an object */ public String getPreRemoveSelector() { return (String)getEventSelectors().elementAt(PreRemoveEvent); }
/** * INTERNAL: * bug 251180 - Missing method org.eclipse.persistence.descriptors.DescriptorEventManager#setAboutToDeleteSelector */ public String getAboutToDeleteSelector() { return getEventSelectors().get(AboutToDeleteEvent); }
/** * INTERNAL: */ public String getAboutToInsertSelector() { return getEventSelectors().get(AboutToInsertEvent); }
/** * INTERNAL: */ public String getAboutToUpdateSelector() { return getEventSelectors().get(AboutToUpdateEvent); }
/** * PUBLIC: * The name of the method called after an object is updated */ public String getPostUpdateSelector() { return getEventSelectors().get(PostUpdateEvent); }
/** * PUBLIC: * A method can be registered to be called on a object when that object has * the create operation applied to it. */ public void setPrePersistSelector(String prePersistSelector) { getEventSelectors().setElementAt(prePersistSelector, PrePersistEvent); }
/** * 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. */ public void setAboutToInsertSelector(String aboutToInsertSelector) { getEventSelectors().set(AboutToInsertEvent, aboutToInsertSelector); }
/** * 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. */ public void setPostCloneSelector(String postCloneSelector) { getEventSelectors().set(PostCloneEvent, postCloneSelector); }
/** * 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. */ public void setPostRefreshSelector(String postRefreshSelector) { getEventSelectors().set(PostRefreshEvent, postRefreshSelector); }
/** * PUBLIC: * A method can be registered to be called on a object that has just been * updated into the database. */ public void setPostUpdateSelector(String postUpdateSelector) { getEventSelectors().set(PostUpdateEvent, postUpdateSelector); }
/** * 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. */ public void setPreDeleteSelector(String preDeleteSelector) { getEventSelectors().set(PreDeleteEvent, preDeleteSelector); }