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 TypeMethodDescriptionvoidAttachLifecycleListener.postAttach(InstanceLifecycleEvent event) This method is called after a detached instance is attached, via thePersistenceManager.makePersistent(T)method.voidClearLifecycleListener.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.voidCreateLifecycleListener.postCreate(InstanceLifecycleEvent event) Invoked whenever an instance is made persistent via a call toPersistenceManager.makePersistent(T)or during persistence by reachability.voidDeleteLifecycleListener.postDelete(InstanceLifecycleEvent event) Invoked whenever a persistent instance is deleted, for example duringPersistenceManager.deletePersistent(Object).voidDetachLifecycleListener.postDetach(InstanceLifecycleEvent event) This method is called during the execution ofPersistenceManager.detachCopy(T)after the detached copy is made.voidDirtyLifecycleListener.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.voidLoadLifecycleListener.postLoad(InstanceLifecycleEvent event) Invoked whenever a persistent instance is loaded from the data store.voidStoreLifecycleListener.postStore(InstanceLifecycleEvent event) Invoked whenever a persistent instance is stored, for example duringPersistenceManager.flush()orTransaction.commit().voidAttachLifecycleListener.preAttach(InstanceLifecycleEvent event) This method is called before a detached instance is attached, via thePersistenceManager.makePersistent(T)method.voidClearLifecycleListener.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.voidDeleteLifecycleListener.preDelete(InstanceLifecycleEvent event) Invoked whenever a persistent instance is deleted, for example duringPersistenceManager.deletePersistent(Object).voidDetachLifecycleListener.preDetach(InstanceLifecycleEvent event) This method is called during the execution ofPersistenceManager.detachCopy(T)before the detached copy is made.voidDirtyLifecycleListener.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.voidStoreLifecycleListener.preStore(InstanceLifecycleEvent event) Invoked whenever a persistent instance is stored, for example duringPersistenceManager.flush()orTransaction.commit().