- All Superinterfaces:
BatchModifyQuery,Query
- All Known Implementing Classes:
AutoBatchUpdateQuery,SqlBatchUpdateQuery,SqlFileBatchUpdateQuery
An interface for batch UPDATE queries.
This interface represents a query that performs batch UPDATE operations. It extends BatchModifyQuery to inherit common batch data modification functionality while specializing for
UPDATE operations.
Implementations of this interface handle the execution of multiple UPDATE statements as a single batch operation for improved performance, and provide methods for handling optimistic concurrency control through version numbers.
-
Method Summary
Modifier and TypeMethodDescriptionvoidIncrements the version numbers for all entities in the batch.Methods inherited from interface org.seasar.doma.jdbc.query.BatchModifyQuery
getBatchSize, getSql, getSqlExecutionSkipCause, getSqlLogType, getSqls, isAutoGeneratedKeysSupported, isExecutable, isOptimisticLockCheckRequiredMethods inherited from interface org.seasar.doma.jdbc.query.Query
comment, complete, getClassName, getConfig, getMethod, getMethodName, getQueryTimeout, prepare
-
Method Details
-
incrementVersions
void incrementVersions()Increments the version numbers for all entities in the batch.This method is called after executing the batch to update the version numbers in the entity objects, ensuring they match the values in the database after the update. This is important for optimistic concurrency control.
-