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 Details

    • PreDeleteHandling

      public PreDeleteHandling(org.hibernate.action.internal.EntityDeleteAction action)
  • Method Details

    • requiresBatchFlush

      public boolean requiresBatchFlush()
      Description copied from interface: PreExecutionCallback
      Whether pending JDBC work must execute before invoking this callback. A callback which has already completed its database checks may return false.
      Specified by:
      requiresBatchFlush in interface PreExecutionCallback
    • beforeExecution

      public boolean beforeExecution(SessionImplementor session)
      Specified by:
      beforeExecution in interface PreExecutionCallback
      Returns:
      true to execute the operation; false to skip it.
    • isVeto

      public boolean isVeto()