- 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 voidaddListener(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.voidsetBeanValidationHandler(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: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
public void removeListener(Object listener)
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
-
-