|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.persistence.PersistenceListenerAdapter
class PersistenceListenerAdapter
Constructor Summary | |
---|---|
PersistenceListenerAdapter(Collection<LifecycleCallbacks>[] calls)
|
|
PersistenceListenerAdapter(LifecycleCallbacks[][] callbacks)
|
Method Summary | |
---|---|
void |
afterDelete(LifecycleEvent event)
Invoked after the instance transferred to a deleted state. |
void |
afterDeletePerformed(LifecycleEvent event)
Receives notifications before an update is performed. |
void |
afterLoad(LifecycleEvent event)
Invoked after state has been loaded into the instance. |
void |
afterPersist(LifecycleEvent event)
Invoked when an instance is persisted. |
void |
afterPersistPerformed(LifecycleEvent event)
Receives notifications after a persist operation has been written to the data store. |
void |
afterRefresh(LifecycleEvent event)
Invoked after state has been refreshed. |
void |
afterUpdatePerformed(LifecycleEvent event)
Receives notifications before an update is performed. |
void |
beforeDelete(LifecycleEvent event)
Invoked before the instance transferred to a deleted state. |
void |
beforePersist(LifecycleEvent event)
Invoked before an instance is persisted. |
void |
beforeUpdate(LifecycleEvent event)
Receives notifications before an update is performed. |
boolean |
respondsTo(int eventType)
Return whether this instance responds to the given event type from LifecycleEvent . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PersistenceListenerAdapter(LifecycleCallbacks[][] callbacks)
public PersistenceListenerAdapter(Collection<LifecycleCallbacks>[] calls)
Method Detail |
---|
public boolean respondsTo(int eventType)
LifecycleEventManager.ListenerAdapter
LifecycleEvent
.
respondsTo
in interface LifecycleEventManager.ListenerAdapter
public void beforePersist(LifecycleEvent event)
PersistListener
beforePersist
in interface PersistListener
public void afterPersist(LifecycleEvent event)
PersistListener
afterPersist
in interface PersistListener
public void afterPersistPerformed(LifecycleEvent event)
PostPersistListener
PersistListener.afterPersist(org.apache.openjpa.event.LifecycleEvent)
in that
the latter is called at the end of the persist() operation itself, not
after the flush.
afterPersistPerformed
in interface PostPersistListener
public void afterLoad(LifecycleEvent event)
LoadListener
afterLoad
in interface LoadListener
public void afterRefresh(LifecycleEvent event)
LoadListener
afterRefresh
in interface LoadListener
public void beforeUpdate(LifecycleEvent event)
UpdateListener
StoreListener.beforeStore(org.apache.openjpa.event.LifecycleEvent)
in that the latter is called for
updated and new records, whereas this is only invoked for updated
records.
beforeUpdate
in interface UpdateListener
public void afterUpdatePerformed(LifecycleEvent event)
UpdateListener
StoreListener.afterStore(org.apache.openjpa.event.LifecycleEvent)
in that the latter is called for
updated and new records, whereas this is only invoked for updated
records, and that this is called after the record is actually flushed
to the store.
afterUpdatePerformed
in interface UpdateListener
public void beforeDelete(LifecycleEvent event)
DeleteListener
beforeDelete
in interface DeleteListener
public void afterDelete(LifecycleEvent event)
DeleteListener
afterDelete
in interface DeleteListener
public void afterDeletePerformed(LifecycleEvent event)
PostDeleteListener
DeleteListener.afterDelete(LifecycleEvent)
in that the latter
is called after the delete operation, whereas this is called after the
delete statements have been sent to the data store.
afterDeletePerformed
in interface PostDeleteListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |