Uses of Class
javax.jdo.listener.InstanceLifecycleEvent
Packages that use InstanceLifecycleEvent
Package
Description
This package contains the JDO specification listener interfaces and classes.
-
Uses of InstanceLifecycleEvent in javax.jdo.listener
Methods in javax.jdo.listener with parameters of type InstanceLifecycleEventModifier and TypeMethodDescriptionvoid
AttachLifecycleListener.postAttach
(InstanceLifecycleEvent event) This method is called after a detached instance is attached, via thePersistenceManager.makePersistent(T)
method.void
ClearLifecycleListener.postClear
(InstanceLifecycleEvent event) This method is called after theClearCallback.jdoPreClear()
method is invoked on the instance and the fields have been cleared by the JDO implementation.void
CreateLifecycleListener.postCreate
(InstanceLifecycleEvent event) Invoked whenever an instance is made persistent via a call toPersistenceManager.makePersistent(T)
or during persistence by reachability.void
DeleteLifecycleListener.postDelete
(InstanceLifecycleEvent event) Invoked whenever a persistent instance is deleted, for example duringPersistenceManager.deletePersistent(java.lang.Object)
.void
DetachLifecycleListener.postDetach
(InstanceLifecycleEvent event) This method is called during the execution ofPersistenceManager.detachCopy(T)
after the detached copy is made.void
DirtyLifecycleListener.postDirty
(InstanceLifecycleEvent event) Invoked whenever a persistent instance is first made dirty, during an operation that modifies the value of a persistent or transactional field.void
LoadLifecycleListener.postLoad
(InstanceLifecycleEvent event) Invoked whenever a persistent instance is loaded from the data store.void
StoreLifecycleListener.postStore
(InstanceLifecycleEvent event) Invoked whenever a persistent instance is stored, for example duringPersistenceManager.flush()
orTransaction.commit()
.void
AttachLifecycleListener.preAttach
(InstanceLifecycleEvent event) This method is called before a detached instance is attached, via thePersistenceManager.makePersistent(T)
method.void
ClearLifecycleListener.preClear
(InstanceLifecycleEvent event) This method is called before the implementation calls the instance methodClearCallback.jdoPreClear()
and before it clears the values in the instance to their Java default values.void
DeleteLifecycleListener.preDelete
(InstanceLifecycleEvent event) Invoked whenever a persistent instance is deleted, for example duringPersistenceManager.deletePersistent(java.lang.Object)
.void
DetachLifecycleListener.preDetach
(InstanceLifecycleEvent event) This method is called during the execution ofPersistenceManager.detachCopy(T)
before the detached copy is made.void
DirtyLifecycleListener.preDirty
(InstanceLifecycleEvent event) Invoked whenever a persistent instance is first made dirty, during an operation that modifies the value of a persistent or transactional field.void
StoreLifecycleListener.preStore
(InstanceLifecycleEvent event) Invoked whenever a persistent instance is stored, for example duringPersistenceManager.flush()
orTransaction.commit()
.