Interface OperationResultChecker

All Known Implementing Classes:
FlushOperation
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@Incubating(since="8.0", group="action-queue") @FunctionalInterface public interface OperationResultChecker
Used to check the results of a statement execution
Since:
8.0
  • Method Details

    • checkResult

      boolean checkResult(int affectedRowCount, PreparedStatement statement, int batchPosition, String sqlString, SessionFactoryImplementor sessionFactory) throws SQLException
      Check the result of a JDBC operation
      Parameters:
      affectedRowCount - The number of rows affected by the operation, as reported by the JDBC driver
      statement - The executed statement, including any registered OUT parameters
      batchPosition - The execution's position within the active batch, if one; if not batching, -1 will be passed
      Returns:
      true indicates an execution that is considered successful; false indicates unsuccessful
      Throws:
      SQLException