Module org.seasar.doma.core
Package org.seasar.doma.jdbc.query
Class SqlFileBatchDeleteQuery.EntityHandler
java.lang.Object
org.seasar.doma.jdbc.query.SqlFileBatchDeleteQuery.EntityHandler
- Enclosing class:
- SqlFileBatchDeleteQuery<ELEMENT>
A handler for entity lifecycle callbacks and optimistic locking.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final EntityType<ELEMENT>The entity type.protected final VersionPropertyType<ELEMENT,?, ?> The version property type for optimistic locking. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEntityHandler(EntityType<ELEMENT> entityType) Constructs a new instance with the specified entity type. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidExecutes post-delete entity lifecycle callbacks.protected voidExecutes pre-delete entity lifecycle callbacks.protected voidPrepares optimistic locking for this query.
-
Field Details
-
entityType
The entity type. -
versionPropertyType
The version property type for optimistic locking.
-
-
Constructor Details
-
EntityHandler
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.
-