Top Description Fields Constructors Methods
org.hibernate.engine.spi

public final Enum ExecuteUpdateResultCheckStyle

extends Enum<ExecuteUpdateResultCheckStyle>
Class Inheritance

For persistence operations (INSERT, UPDATE, DELETE) what style of determining results (success/failure) is to be used.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
public static final ExecuteUpdateResultCheckStyle
COUNT

Perform row-count checking.

private final String
public static final ExecuteUpdateResultCheckStyle
NONE

Do not perform checking.

public static final ExecuteUpdateResultCheckStyle
PARAM

Essentially the same as COUNT except that the row count actually comes from an output parameter registered as part of a java.sql.CallableStatement.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ExecuteUpdateResultCheckStyle
determineDefault(String customSql, boolean callable)

public String
public static ExecuteUpdateResultCheckStyle
public static ExecuteUpdateResultCheckStyle
public static ExecuteUpdateResultCheckStyle[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

COUNTback to summary
public static final ExecuteUpdateResultCheckStyle COUNT

Perform row-count checking. Row counts are the int values returned by both java.sql.PreparedStatement#executeUpdate() and java.sql.Statement#executeBatch(). These values are checked against some expected count.

nameback to summary
private final String name

Hides java.lang.Enum.name.

NONEback to summary
public static final ExecuteUpdateResultCheckStyle NONE

Do not perform checking. Either user simply does not want checking, or is indicating a java.sql.CallableStatement execution in which the checks are being performed explicitly and failures are handled through propagation of java.sql.SQLExceptions.

PARAMback to summary
public static final ExecuteUpdateResultCheckStyle PARAM

Essentially the same as COUNT except that the row count actually comes from an output parameter registered as part of a java.sql.CallableStatement. This style explicitly prohibits statement batching from being used...

Constructor Detail

ExecuteUpdateResultCheckStyleback to summary
private ExecuteUpdateResultCheckStyle(String name)

Method Detail

determineDefaultback to summary
public static ExecuteUpdateResultCheckStyle determineDefault(String customSql, boolean callable)
externalNameback to summary
public String externalName()
fromExternalNameback to summary
public static ExecuteUpdateResultCheckStyle fromExternalName(String name)
valueOfback to summary
public static ExecuteUpdateResultCheckStyle valueOf(String name)
valuesback to summary
public static ExecuteUpdateResultCheckStyle[] values()