Top Description Fields Constructors Methods
org.hibernate.annotations

public final Enum ResultCheckStyle

extends Enum<ResultCheckStyle>
Class Inheritance

Enumerates strategies for checking JDBC return codes for custom SQL DML queries.

Return code checking is used to verify that a SQL statement actually had the intended effect, for example, that an UPDATE statement actually changed the expected number of rows.

Author
László Benke
See Also
SQLInsert#check(), SQLUpdate#check(), SQLDelete#check(), SQLDeleteAll#check()

Field Summary

Modifier and TypeField and Description
public static final ResultCheckStyle
COUNT

Row count checking.

public static final ResultCheckStyle
NONE

No return code checking.

public static final ResultCheckStyle
PARAM

Essentially identical to COUNT except that the row count is obtained via an output parameter of a stored procedure.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ResultCheckStyle
public static ResultCheckStyle[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

COUNTback to summary
public static final ResultCheckStyle COUNT

Row count checking. A row count is an integer value returned by java.sql.PreparedStatement#executeUpdate() or java.sql.Statement#executeBatch(). The row count is checked against an expected value. For example, the expected row count for an INSERT statement is always 1.

NONEback to summary
public static final ResultCheckStyle NONE

No return code checking. Might mean that no checks are required, or that failure is indicated by a java.sql.SQLException being thrown, for example, by a stored procedure which performs explicit checks.

PARAMback to summary
public static final ResultCheckStyle PARAM

Essentially identical to COUNT except that the row count is obtained via an output parameter of a stored procedure.

Statement batching is disabled when PARAM is selected.

Constructor Detail

ResultCheckStyleback to summary
private ResultCheckStyle()

Method Detail

valueOfback to summary
public static ResultCheckStyle valueOf(String name)
valuesback to summary
public static ResultCheckStyle[] values()