class PersistenceListenerAdapter extends Object implements LifecycleEventManager.ListenerAdapter, PersistListener, PostPersistListener, LoadListener, UpdateListener, DeleteListener, PostDeleteListener
| Constructor and Description |
|---|
PersistenceListenerAdapter(Collection<LifecycleCallbacks>[] calls) |
PersistenceListenerAdapter(LifecycleCallbacks[][] callbacks) |
| Modifier and Type | Method and Description |
|---|---|
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. |
public PersistenceListenerAdapter(LifecycleCallbacks[][] callbacks)
public PersistenceListenerAdapter(Collection<LifecycleCallbacks>[] calls)
public boolean respondsTo(int eventType)
LifecycleEventManager.ListenerAdapterLifecycleEvent.respondsTo in interface LifecycleEventManager.ListenerAdapterpublic void beforePersist(LifecycleEvent event)
PersistListenerbeforePersist in interface PersistListenerpublic void afterPersist(LifecycleEvent event)
PersistListenerafterPersist 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)
LoadListenerafterLoad in interface LoadListenerpublic void afterRefresh(LifecycleEvent event)
LoadListenerafterRefresh 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)
DeleteListenerbeforeDelete in interface DeleteListenerpublic void afterDelete(LifecycleEvent event)
DeleteListenerafterDelete 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 PostDeleteListenerCopyright © 2006–2015 Apache Software Foundation. All rights reserved.