public class JDOCallbackHandler extends Object implements org.datanucleus.state.CallbackHandler
| Constructor and Description |
|---|
JDOCallbackHandler(org.datanucleus.PersistenceNucleusContext nucleusCtx) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(Object listener,
Class[] classes)
Adds a new listener to this handler.
|
void |
close()
Clear any objects to release resources.
|
protected List<LifecycleListenerForClass> |
getListenersWorkingCopy()
Accessor for the working copy of the listeners (in case any are added/removed in the callbacks).
|
void |
postAttach(Object pc,
Object detachedPC)
Callback after the object is attached.
|
void |
postClear(Object pc)
Callback after the fields of the object are cleared.
|
void |
postCreate(Object pc)
Callback after the object has been created.
|
void |
postDelete(Object pc)
Callback after the object is deleted.
|
void |
postDetach(Object pc,
Object detachedPC)
Callback after the object is detached.
|
void |
postDirty(Object pc)
Callback after the object is made dirty.
|
void |
postLoad(Object pc)
Callback after the fields of the object are loaded.
|
void |
postRefresh(Object pc)
Callback after the fields of the object are refreshed.
|
void |
postStore(Object pc)
Callback after the object is stored.
|
void |
preAttach(Object pc)
Callback before the object is attached.
|
void |
preClear(Object pc)
Callback before the fields of the object are cleared.
|
void |
preDelete(Object pc)
Callback before the object is deleted.
|
void |
preDetach(Object pc)
Callback before the object is detached.
|
void |
preDirty(Object pc)
Callback before the object is made dirty.
|
void |
prePersist(Object pc)
Callback before the object is persisted (just before the lifecycle state change).
|
void |
preStore(Object pc)
Callback before the object is stored.
|
void |
removeListener(Object listener)
Remove a listener for this handler.
|
void |
setBeanValidationHandler(org.datanucleus.BeanValidationHandler handler) |
public JDOCallbackHandler(org.datanucleus.PersistenceNucleusContext nucleusCtx)
public void setBeanValidationHandler(org.datanucleus.BeanValidationHandler handler)
setBeanValidationHandler in interface org.datanucleus.state.CallbackHandlerpublic void postCreate(Object pc)
postCreate in interface org.datanucleus.state.CallbackHandlerpc - The Objectpublic void prePersist(Object pc)
prePersist in interface org.datanucleus.state.CallbackHandlerpc - The Objectpublic void preStore(Object pc)
preStore in interface org.datanucleus.state.CallbackHandlerpc - The Objectpublic void postStore(Object pc)
postStore in interface org.datanucleus.state.CallbackHandlerpc - The Objectpublic void preClear(Object pc)
preClear in interface org.datanucleus.state.CallbackHandlerpc - The Objectpublic void postClear(Object pc)
postClear in interface org.datanucleus.state.CallbackHandlerpc - The Objectpublic void preDelete(Object pc)
preDelete in interface org.datanucleus.state.CallbackHandlerpc - The Objectpublic void postDelete(Object pc)
postDelete in interface org.datanucleus.state.CallbackHandlerpc - The Objectpublic void preDirty(Object pc)
preDirty in interface org.datanucleus.state.CallbackHandlerpc - The Objectpublic void postDirty(Object pc)
postDirty in interface org.datanucleus.state.CallbackHandlerpc - The Objectpublic void postLoad(Object pc)
postLoad in interface org.datanucleus.state.CallbackHandlerpc - The Objectpublic void postRefresh(Object pc)
postRefresh in interface org.datanucleus.state.CallbackHandlerpc - The Objectpublic void preDetach(Object pc)
preDetach in interface org.datanucleus.state.CallbackHandlerpc - The Objectpublic void postDetach(Object pc, Object detachedPC)
postDetach in interface org.datanucleus.state.CallbackHandlerpc - The ObjectdetachedPC - The detached objectpublic void preAttach(Object pc)
preAttach in interface org.datanucleus.state.CallbackHandlerpc - The Objectpublic void postAttach(Object pc, Object detachedPC)
postAttach in interface org.datanucleus.state.CallbackHandlerpc - The attached ObjectdetachedPC - The detached objectpublic void addListener(Object listener, Class[] classes)
addListener in interface org.datanucleus.state.CallbackHandlerlistener - the listener instanceclasses - the persistent classes which events are fired for the listenerpublic void removeListener(Object listener)
removeListener in interface org.datanucleus.state.CallbackHandlerlistener - the listener instancepublic void close()
close in interface org.datanucleus.state.CallbackHandlerprotected List<LifecycleListenerForClass> getListenersWorkingCopy()
Copyright © 2020. All rights reserved.