Package org.datanucleus
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 TypeMethodDescriptionvoid
addListener
(Object listener, Class[] classes) Adds a new listener to this handler.void
close()
Clear any objects to release resources.void
removeListener
(Object listener) Remove a listener for this handler.void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.datanucleus.state.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:CallbackHandler
Adds a new listener to this handler.- Specified by:
addListener
in interfaceCallbackHandler
- Parameters:
listener
- the listener instanceclasses
- the persistent classes which events are fired for the listener
-
removeListener
Description copied from interface:CallbackHandler
Remove a listener for this handler.- Specified by:
removeListener
in interfaceCallbackHandler
- Parameters:
listener
- the listener instance
-
close
public void close()Description copied from interface:CallbackHandler
Clear any objects to release resources.- Specified by:
close
in interfaceCallbackHandler
-