Class PreDeleteHandling
java.lang.Object
org.hibernate.action.queue.spi.decompose.entity.PreDeleteHandling
- All Implemented Interfaces:
PreExecutionCallback
@Incubating(since="8.0",
group="action-queue")
public class PreDeleteHandling
extends Object
implements PreExecutionCallback
Pre-execution callback for entity delete actions.
- Since:
- 8.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbeforeExecution(SessionImplementor session) booleanisVeto()booleanWhether pending JDBC work must execute before invoking this callback.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PreExecutionCallback
and
-
Constructor Details
-
PreDeleteHandling
public PreDeleteHandling(org.hibernate.action.internal.EntityDeleteAction action)
-
-
Method Details
-
requiresBatchFlush
public boolean requiresBatchFlush()Description copied from interface:PreExecutionCallbackWhether pending JDBC work must execute before invoking this callback. A callback which has already completed its database checks may returnfalse.- Specified by:
requiresBatchFlushin interfacePreExecutionCallback
-
beforeExecution
- Specified by:
beforeExecutionin interfacePreExecutionCallback- Returns:
trueto execute the operation;falseto skip it.
-
isVeto
public boolean isVeto()
-