Top Description Methods
org.hibernate.engine.jdbc.mutation

public Interface OperationResultChecker

Annotations
@Incubating
@FunctionalInterface
Imports
java.sql.SQLException, org.hibernate.Incubating, org.hibernate.engine.jdbc.mutation.group.PreparedStatementDetails

Used to check the results of a statement execution
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true indicates an execution that is considered successful; false indicates unsuccessful
checkResult
(PreparedStatementDetails
Details for the SQL statement executed
statementDetails
,
int
The number of rows affected by the operation, as reported by the JDBC driver
affectedRowCount
,
int
The execution's position within the active batch, if one; if not batching, -1 will be passed
batchPosition
)

Check the result of a JDBC operation

Method Detail

checkResultback to summary
public boolean checkResult(PreparedStatementDetails statementDetails, int affectedRowCount, int batchPosition) throws SQLException

Check the result of a JDBC operation

Parameters
statementDetails:PreparedStatementDetails

Details for the SQL statement executed

affectedRowCount:int

The number of rows affected by the operation, as reported by the JDBC driver

batchPosition:int

The execution's position within the active batch, if one; if not batching, -1 will be passed

Returns:boolean

true indicates an execution that is considered successful; false indicates unsuccessful