- All Superinterfaces:
ModifyQuery,Query
- All Known Implementing Classes:
AutoUpdateQuery,CriteriaQuery,SqlFileUpdateQuery,SqlUpdateQuery
An interface for UPDATE queries.
This interface represents a query that performs UPDATE operations. It extends ModifyQuery to inherit common data modification functionality while specializing for UPDATE
operations.
Implementations of this interface handle the execution of UPDATE statements, including the construction of the SET clause, WHERE clause, and handling of optimistic concurrency control through version numbers.
-
Method Summary
Modifier and TypeMethodDescriptionvoidIncrements the version number for the entity being updated.Methods inherited from interface org.seasar.doma.jdbc.query.ModifyQuery
getSql, getSqlExecutionSkipCause, getSqlLogType, isAutoGeneratedKeysSupported, isExecutable, isOptimisticLockCheckRequiredMethods inherited from interface org.seasar.doma.jdbc.query.Query
comment, complete, getClassName, getConfig, getMethod, getMethodName, getQueryTimeout, prepare
-
Method Details
-
incrementVersion
void incrementVersion()Increments the version number for the entity being updated.This method is called after executing the UPDATE statement to update the version number in the entity object, ensuring it matches the value in the database after the update. This is important for optimistic concurrency control.
-