Class SqlFileBatchDeleteQuery.EntityHandler

java.lang.Object
org.seasar.doma.jdbc.query.SqlFileBatchDeleteQuery.EntityHandler
Enclosing class:
SqlFileBatchDeleteQuery<ELEMENT>

protected class SqlFileBatchDeleteQuery.EntityHandler extends Object
A handler for entity lifecycle callbacks and optimistic locking.
  • Field Details

    • entityType

      protected final EntityType<ELEMENT> entityType
      The entity type.
    • versionPropertyType

      protected final VersionPropertyType<ELEMENT,?,?> versionPropertyType
      The version property type for optimistic locking.
  • Constructor Details

    • EntityHandler

      protected EntityHandler(EntityType<ELEMENT> entityType)
      Constructs a new instance with the specified entity type.
      Parameters:
      entityType - the entity type
  • Method Details

    • preDelete

      protected void preDelete()
      Executes pre-delete entity lifecycle callbacks.

      This method creates a pre-delete context and calls the entity type's preDelete method.

    • postDelete

      protected void postDelete()
      Executes post-delete entity lifecycle callbacks.

      This method creates a post-delete context and calls the entity type's postDelete method.

    • prepareOptimisticLock

      protected void prepareOptimisticLock()
      Prepares optimistic locking for this query.

      This method sets the optimistic lock check flag based on the version property and configuration.