public class NullCallbackHandler extends Object implements CallbackHandler
| Constructor and Description |
|---|
NullCallbackHandler() |
| 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 detachedPC)
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 |
setValidationListener(CallbackHandler handler)
Method to set the listener for validation callbacks.
|
public void setValidationListener(CallbackHandler handler)
CallbackHandlersetValidationListener in interface CallbackHandlerhandler - Handler for validation callbackspublic void postCreate(Object pc)
CallbackHandlerpostCreate in interface CallbackHandlerpc - The Objectpublic void prePersist(Object pc)
CallbackHandlerprePersist in interface CallbackHandlerpc - The Objectpublic void preStore(Object pc)
CallbackHandlerpreStore in interface CallbackHandlerpc - The Objectpublic void postStore(Object pc)
CallbackHandlerpostStore in interface CallbackHandlerpc - The Objectpublic void preClear(Object pc)
CallbackHandlerpreClear in interface CallbackHandlerpc - The Objectpublic void postClear(Object pc)
CallbackHandlerpostClear in interface CallbackHandlerpc - The Objectpublic void preDelete(Object pc)
CallbackHandlerpreDelete in interface CallbackHandlerpc - The Objectpublic void postDelete(Object pc)
CallbackHandlerpostDelete in interface CallbackHandlerpc - The Objectpublic void preDirty(Object pc)
CallbackHandlerpreDirty in interface CallbackHandlerpc - The Objectpublic void postDirty(Object pc)
CallbackHandlerpostDirty in interface CallbackHandlerpc - The Objectpublic void postLoad(Object pc)
CallbackHandlerpostLoad in interface CallbackHandlerpc - The Objectpublic void postRefresh(Object pc)
CallbackHandlerpostRefresh in interface CallbackHandlerpc - The Objectpublic void preDetach(Object pc)
CallbackHandlerpreDetach in interface CallbackHandlerpc - The Objectpublic void postDetach(Object pc, Object detachedPC)
CallbackHandlerpostDetach in interface CallbackHandlerpc - The ObjectdetachedPC - The detached objectpublic void preAttach(Object detachedPC)
CallbackHandlerpreAttach in interface CallbackHandlerdetachedPC - The Objectpublic void postAttach(Object pc, Object detachedPC)
CallbackHandlerpostAttach in interface CallbackHandlerpc - The attached ObjectdetachedPC - The detached objectpublic void addListener(Object listener, Class[] classes)
CallbackHandleraddListener in interface CallbackHandlerlistener - the listener instanceclasses - the persistent classes which events are fired for the listenerpublic void removeListener(Object listener)
CallbackHandlerremoveListener in interface CallbackHandlerlistener - the listener instancepublic void close()
CallbackHandlerclose in interface CallbackHandlerCopyright © 2017. All rights reserved.