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 Constructor Description NullCallbackHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
setBeanValidationHandler(BeanValidationHandler handler)
-
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
-
-
-
-
Method Detail
-
setBeanValidationHandler
public void setBeanValidationHandler(BeanValidationHandler handler)
-
addListener
public void addListener(Object listener, Class[] classes)
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
public void removeListener(Object listener)
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
-
-