|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.event.AbstractLifecycleListener
public abstract class AbstractLifecycleListener
Abstract implementation of the LifecycleListener
interface
which delegates events to a single method.
Constructor Summary | |
---|---|
AbstractLifecycleListener()
|
Method Summary | |
---|---|
void |
afterClear(LifecycleEvent event)
Invoked after state is cleared. |
void |
afterDelete(LifecycleEvent event)
Invoked after the instance transferred to a deleted state. |
void |
afterDirty(LifecycleEvent event)
Invoked after the first change is applied. |
void |
afterDirtyFlushed(LifecycleEvent event)
Invoked after the first change is applied to a flushed instance. |
void |
afterLoad(LifecycleEvent event)
Invoked after state has been loaded into the instance. |
void |
afterPersist(LifecycleEvent event)
Invoked when an instance is persisted. |
void |
afterStore(LifecycleEvent event)
Invoked just after store. |
void |
beforeClear(LifecycleEvent event)
Invoked before state is cleared. |
void |
beforeDelete(LifecycleEvent event)
Invoked before the instance transferred to a deleted state. |
void |
beforeDirty(LifecycleEvent event)
Invoked before the first change is applied. |
void |
beforeDirtyFlushed(LifecycleEvent event)
Invoked before the first change is applied to a flushed instance. |
void |
beforeStore(LifecycleEvent event)
Invoked just prior to store. |
protected void |
eventOccurred(LifecycleEvent event)
Should be implemented to handle the specific lifecycle event. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.openjpa.event.PersistListener |
---|
beforePersist |
Methods inherited from interface org.apache.openjpa.event.LoadListener |
---|
afterRefresh |
Methods inherited from interface org.apache.openjpa.event.DetachListener |
---|
afterDetach, beforeDetach |
Methods inherited from interface org.apache.openjpa.event.AttachListener |
---|
afterAttach, beforeAttach |
Constructor Detail |
---|
public AbstractLifecycleListener()
Method Detail |
---|
protected void eventOccurred(LifecycleEvent event)
public void afterPersist(LifecycleEvent event)
PersistListener
afterPersist
in interface PersistListener
public void beforeClear(LifecycleEvent event)
ClearListener
beforeClear
in interface ClearListener
public void afterClear(LifecycleEvent event)
ClearListener
afterClear
in interface ClearListener
public void afterLoad(LifecycleEvent event)
LoadListener
afterLoad
in interface LoadListener
public void beforeDelete(LifecycleEvent event)
DeleteListener
beforeDelete
in interface DeleteListener
public void afterDelete(LifecycleEvent event)
DeleteListener
afterDelete
in interface DeleteListener
public void beforeStore(LifecycleEvent event)
StoreListener
beforeStore
in interface StoreListener
public void afterStore(LifecycleEvent event)
StoreListener
afterStore
in interface StoreListener
public void beforeDirty(LifecycleEvent event)
DirtyListener
beforeDirty
in interface DirtyListener
public void afterDirty(LifecycleEvent event)
DirtyListener
afterDirty
in interface DirtyListener
public void beforeDirtyFlushed(LifecycleEvent event)
DirtyListener
beforeDirtyFlushed
in interface DirtyListener
public void afterDirtyFlushed(LifecycleEvent event)
DirtyListener
afterDirtyFlushed
in interface DirtyListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |