Interface UpdateQuery

All Superinterfaces:
ModifyQuery, Query
All Known Implementing Classes:
AutoUpdateQuery, CriteriaQuery, SqlFileUpdateQuery, SqlUpdateQuery

public interface UpdateQuery extends ModifyQuery
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 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.