|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 PersistListenerpublic void afterPersist(LifecycleEvent event)
PersistListener
afterPersist in interface PersistListenerpublic void beforeClear(LifecycleEvent event)
ClearListener
beforeClear in interface ClearListenerpublic void afterClear(LifecycleEvent event)
ClearListener
afterClear in interface ClearListenerpublic void afterLoad(LifecycleEvent event)
LoadListener
afterLoad in interface LoadListenerpublic void beforeDelete(LifecycleEvent event)
DeleteListener
beforeDelete in interface DeleteListenerpublic void afterDelete(LifecycleEvent event)
DeleteListener
afterDelete in interface DeleteListenerpublic void beforeStore(LifecycleEvent event)
StoreListener
beforeStore in interface StoreListenerpublic void afterStore(LifecycleEvent event)
StoreListener
afterStore in interface StoreListenerpublic void beforeDirty(LifecycleEvent event)
DirtyListener
beforeDirty in interface DirtyListenerpublic void afterDirty(LifecycleEvent event)
DirtyListener
afterDirty in interface DirtyListenerpublic void beforeDirtyFlushed(LifecycleEvent event)
DirtyListener
beforeDirtyFlushed in interface DirtyListenerpublic void afterDirtyFlushed(LifecycleEvent event)
DirtyListener
afterDirtyFlushed in interface DirtyListenerpublic void afterRefresh(LifecycleEvent event)
LoadListener
afterRefresh in interface LoadListenerpublic void beforeDetach(LifecycleEvent event)
DetachListener
beforeDetach in interface DetachListenerpublic void afterDetach(LifecycleEvent event)
DetachListener
afterDetach in interface DetachListenerpublic void beforeAttach(LifecycleEvent event)
AttachListener
beforeAttach in interface AttachListenerpublic 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 | |||||||||