|
||||||||||
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 |
afterAttach(LifecycleEvent event)
Invoked after the instance has been attached. |
void |
afterClear(LifecycleEvent event)
Invoked after state is cleared. |
void |
afterDelete(LifecycleEvent event)
Invoked after the instance transferred to a deleted state. |
void |
afterDetach(LifecycleEvent event)
Invoked after the instance has been detached. |
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 |
afterRefresh(LifecycleEvent event)
Invoked after state has been refreshed. |
void |
afterStore(LifecycleEvent event)
Invoked just after store. |
void |
beforeAttach(LifecycleEvent event)
Invoked before the instance is attached. |
void |
beforeClear(LifecycleEvent event)
Invoked before state is cleared. |
void |
beforeDelete(LifecycleEvent event)
Invoked before the instance transferred to a deleted state. |
void |
beforeDetach(LifecycleEvent event)
Invoked before the instance is detached. |
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 |
beforePersist(LifecycleEvent event)
Invoked before an instance is persisted. |
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 |
Constructor Detail |
---|
public AbstractLifecycleListener()
Method Detail |
---|
protected void eventOccurred(LifecycleEvent event)
public void beforePersist(LifecycleEvent event)
PersistListener
beforePersist
in interface PersistListener
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
public void afterRefresh(LifecycleEvent event)
LoadListener
afterRefresh
in interface LoadListener
public void beforeDetach(LifecycleEvent event)
DetachListener
beforeDetach
in interface DetachListener
public void afterDetach(LifecycleEvent event)
DetachListener
afterDetach
in interface DetachListener
public void beforeAttach(LifecycleEvent event)
AttachListener
beforeAttach
in interface AttachListener
public void afterAttach(LifecycleEvent event)
AttachListener
afterAttach
in interface AttachListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |