Package org.hibernate.jdbc
Class Expectations
java.lang.Object
org.hibernate.jdbc.Expectations
Useful operations for dealing with
Expectations.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated.static classDeprecated.UseExpectation.OutParameter, creating a custom subclass if necessary -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ExpectationDeprecated.static final ExpectationDeprecated.UseExpectation.Nonestatic final ExpectationDeprecated.static final intDeprecated, for removal: This API element is subject to removal in a future version.static final intDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExpectationDeprecated, for removal: This API element is subject to removal in a future version.static ExpectationcreateExpectation(Supplier<? extends Expectation> expectation, boolean callable) Create an instance of the given class implementingExpectation.
-
Field Details
-
NONE
Deprecated.UseExpectation.None -
BASIC
Deprecated. -
PARAM
Deprecated. -
USUAL_EXPECTED_COUNT
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
USUAL_PARAM_POSITION
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
-
Method Details
-
createExpectation
@Internal public static Expectation createExpectation(Supplier<? extends Expectation> expectation, boolean callable) Create an instance of the given class implementingExpectation.- Parameters:
expectation- a class which implementsExpectationcallable- true if theExpectationwill be called withCallableStatements.- Returns:
- a new instance of the given class
- Since:
- 6.5
-
appropriateExpectation
@Deprecated(since="6.5", forRemoval=true) public static Expectation appropriateExpectation(ExecuteUpdateResultCheckStyle style) Deprecated, for removal: This API element is subject to removal in a future version.
-
Expectation.RowCount, creating a custom subclass if necessary