Interface JdbcOperation

All Known Subinterfaces:
JdbcMutation, JdbcMutationOperation, JdbcOperationQuery, JdbcOperationQueryAnonBlock, JdbcOperationQueryCall, JdbcOperationQueryInsert, JdbcOperationQueryMutation, JdbcSelect, PrimaryOperation
All Known Implementing Classes:
AbstractJdbcMutation, JdbcDeleteMutation, JdbcInsertMutation, JdbcUpdateMutation, MergeOperation, UpsertOperation

@SPI({USE,SUPPLY}) @Incubating(since="6.0", group="sql-execution") public interface JdbcOperation

A command to perform through JDBC, normally with a PreparedStatement or CallableStatement.

The command text is ordinarily SQL, but may use another language understood by the configured JDBC driver. Likewise, affected table names may identify backend-equivalent query spaces such as document collections.

Custom SQL AST translators supply operations to Hibernate through SqlAstTranslator.translate(JdbcParameterBindings, QueryOptions). Build query operations with JdbcOperations; do not implement operation contracts or instantiate Hibernate's internal implementations.

Since:
8.0
See Also:
  • Method Details

    • getSqlString

      String getSqlString()
      The command text to execute through JDBC. This is ordinarily SQL, but may use another language understood by the configured JDBC driver.
    • getAffectedTableNames

      Set<String> getAffectedTableNames()
      The relational tables or backend-equivalent query spaces referred to by this operation.
    • getParameterBinders

      List<? extends JdbcParameterBinder> getParameterBinders()
      The list of parameter binders for the generated PreparedStatement.