public class JPACallbackHandler extends Object implements org.datanucleus.state.CallbackHandler
| Constructor and Description |
|---|
JPACallbackHandler(org.datanucleus.NucleusContext 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.
|
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 (after calling remove() but before the lifecycle state change).
|
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 |
setValidationListener(org.datanucleus.state.CallbackHandler handler) |
public JPACallbackHandler(org.datanucleus.NucleusContext nucleusCtx)
public void setValidationListener(org.datanucleus.state.CallbackHandler handler)
setValidationListener 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 instance.classes - this parameter is ignored in this implementationpublic void removeListener(Object listener)
removeListener in interface org.datanucleus.state.CallbackHandlerlistener - the listener instancepublic void close()
close in interface org.datanucleus.state.CallbackHandlerCopyright © 2015. All rights reserved.