|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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.ListenerAdapterLifecycleEvent.
respondsTo in interface LifecycleEventManager.ListenerAdapterpublic void beforePersist(LifecycleEvent event)
PersistListener
beforePersist in interface PersistListenerpublic void afterPersist(LifecycleEvent event)
PersistListener
afterPersist in interface PersistListenerpublic void afterPersistPerformed(LifecycleEvent event)
PostPersistListenerPersistListener.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 PostPersistListenerpublic void afterLoad(LifecycleEvent event)
LoadListener
afterLoad in interface LoadListenerpublic void afterRefresh(LifecycleEvent event)
LoadListener
afterRefresh in interface LoadListenerpublic void beforeUpdate(LifecycleEvent event)
UpdateListenerStoreListener.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 UpdateListenerpublic void afterUpdatePerformed(LifecycleEvent event)
UpdateListenerStoreListener.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 UpdateListenerpublic void beforeDelete(LifecycleEvent event)
DeleteListener
beforeDelete in interface DeleteListenerpublic void afterDelete(LifecycleEvent event)
DeleteListener
afterDelete in interface DeleteListenerpublic void afterDeletePerformed(LifecycleEvent event)
PostDeleteListenerDeleteListener.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 | |||||||||