Package org.hibernate.jdbc
Class Expectations
java.lang.Object
org.hibernate.jdbc.Expectations
Useful operations for dealing with
Expectation
s.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Deprecated.static class
Deprecated.UseExpectation.OutParameter
, creating a custom subclass if necessary -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Expectation
Deprecated.static final Expectation
Deprecated.UseExpectation.None
static final Expectation
Deprecated.static final int
Deprecated, for removal: This API element is subject to removal in a future version.static final int
Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic Expectation
Deprecated, for removal: This API element is subject to removal in a future version.static Expectation
createExpectation
(Class<? 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(Class<? extends Expectation> expectation, boolean callable) Create an instance of the given class implementingExpectation
.- Parameters:
expectation
- a class which implementsExpectation
callable
- true if theExpectation
will be called withCallableStatement
s.- 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