About event

1-10 of 141Refresh
Manual
267

JPA Lifecycle Events

Callback methods are user defined methods that are attached to entity lifecycle events and are invoked automatically by JPA when these events occur. Internal Callback Methods Internal callback ... class may include callback methods for any subset or combination of lifecycle events
JDO Doc
61

postAttach(event)

Method javax.jdo.listener.AttachLifecycleListener void postAttach(   InstanceLifecycleEvent event ) This method is called after a detached instance is attached, via the javax.jdo.PersistenceManager ... AttachCallback.jdoPostAttach on the persistent instance. Parameters: event - the attach event. Since: JDO 2.0
JDO Doc
61

postClear(event)

Method javax.jdo.listener.ClearLifecycleListener void postClear(   InstanceLifecycleEvent event ) This method is called after the ClearCallback.jdoPreClear method is invoked on the instance and the fields have been cleared by the JDO implementation. Parameters: event - the clear event. Since: JDO 2.0
JDO Doc
61

postCreate(event)

Method javax.jdo.listener.CreateLifecycleListener void postCreate(   InstanceLifecycleEvent event ) Invoked whenever an instance is made persistent via a call to javax.jdo.PersistenceManager.makePersistent or during persistence by reachability. Parameters: event - the create event. Since: JDO 2.0
JDO Doc
61

postDelete(event)

Method javax.jdo.listener.DeleteLifecycleListener void postDelete(   InstanceLifecycleEvent event ) Invoked whenever a persistent instance is deleted, for example during javax.jdo.PersistenceManager ... to field values is not permitted. Parameters: event - the delete event. Since: JDO 2.0
JDO Doc
61

postDetach(event)

Method javax.jdo.listener.DetachLifecycleListener void postDetach(   InstanceLifecycleEvent event ) This method is called during the execution of javax.jdo.PersistenceManager.detachCopy ... on the detached instance. Parameters: event - the detach event. Since: JDO 2.0
JDO Doc
61

postLoad(event)

Method javax.jdo.listener.LoadLifecycleListener void postLoad(   InstanceLifecycleEvent event ) Invoked whenever a persistent instance is loaded from the data store. It is called after the method LoadCallback.jdoPostLoad is invoked on the persistent instance. Parameters: event - the load event. Since: JDO 2.0
JDO Doc
61

postStore(event)

Method javax.jdo.listener.StoreLifecycleListener void postStore(   InstanceLifecycleEvent event ) Invoked whenever a persistent instance is stored, for example during javax.jdo.PersistenceManager.flush or javax.jdo.Transaction.commit. It is called after the field values have been stored. Parameters: event - the store event. Since: JDO 2.0
JDO Doc
61

preAttach(event)

Method javax.jdo.listener.AttachLifecycleListener void preAttach(   InstanceLifecycleEvent event ) This method is called before a detached instance is attached, via the javax.jdo.PersistenceManager ... the corresponding AttachCallback.jdoPreAttach on the detached instance. Parameters: event - the attach event. Since: JDO 2.0
JDO Doc
61

preClear(event)

Method javax.jdo.listener.ClearLifecycleListener void preClear(   InstanceLifecycleEvent event ) This method is called before the implementation calls the instance method ClearCallback.jdoPreClear ... , so access to fields is not mediated. Parameters: event - the clear event. Since: JDO 2.0