Package org.hibernate.annotations
Enum Class ResultCheckStyle
- All Implemented Interfaces:
Serializable,Comparable<ResultCheckStyle>,Constable
Deprecated.
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated.Row count checking.Deprecated.No return code checking.Deprecated.Essentially identical toCOUNTexcept that the row count is obtained via an output parameter of astored procedure. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResultCheckStyleDeprecated.Returns the enum constant of this class with the specified name.static ResultCheckStyle[]values()Deprecated.Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Deprecated.No return code checking. Might mean that no checks are required, or that failure is indicated by aSQLExceptionbeing thrown, for example, by astored procedurewhich performs explicit checks.- See Also:
-
COUNT
Deprecated.Row count checking. A row count is an integer value returned byPreparedStatement.executeUpdate()orStatement.executeBatch(). The row count is checked against an expected value. For example, the expected row count for anINSERTstatement is always 1.- See Also:
-
PARAM
Deprecated.Essentially identical toCOUNTexcept that the row count is obtained via an output parameter of astored procedure.Statement batching is disabled when
PARAMis selected.- See Also:
-
-
Method Details
-
values
Deprecated.Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
Expectationclass instead.