Class ExecutionContextImpl.NullCallbackHandler
java.lang.Object
org.datanucleus.ExecutionContextImpl.NullCallbackHandler
- All Implemented Interfaces:
CallbackHandler
- Enclosing class:
ExecutionContextImpl
public static class ExecutionContextImpl.NullCallbackHandler
extends Object
implements CallbackHandler
Callback handler that does nothing. Provided for the case where the user wants to do bulk operations and isn't interested in callbacks.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(Object listener, Class[] classes) Adds a new listener to this handler.voidclose()Clear any objects to release resources.voidremoveListener(Object listener) Remove a listener for this handler.voidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CallbackHandler
postAttach, postClear, postCreate, postDelete, postDetach, postDirty, postLoad, postRefresh, postStore, preAttach, preClear, preDelete, preDetach, preDirty, prePersist, preStore
-
Constructor Details
-
NullCallbackHandler
public NullCallbackHandler()
-
-
Method Details
-
setBeanValidationHandler
-
addListener
Description copied from interface:CallbackHandlerAdds a new listener to this handler.- Specified by:
addListenerin interfaceCallbackHandler- Parameters:
listener- the listener instanceclasses- the persistent classes which events are fired for the listener
-
removeListener
Description copied from interface:CallbackHandlerRemove a listener for this handler.- Specified by:
removeListenerin interfaceCallbackHandler- Parameters:
listener- the listener instance
-
close
public void close()Description copied from interface:CallbackHandlerClear any objects to release resources.- Specified by:
closein interfaceCallbackHandler
-