Package org.hibernate.jdbc
Class Expectations
- java.lang.Object
-
- org.hibernate.jdbc.Expectations
-
public class Expectations extends Object
Useful operations for dealing withExpectation
s.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Expectations.BasicExpectation
Deprecated.UseExpectation.RowCount
, creating a custom subclass if necessarystatic class
Expectations.BasicParamExpectation
Deprecated.UseExpectation.OutParameter
, creating a custom subclass if necessary
-
Field Summary
Fields Modifier and Type Field Description static Expectation
BASIC
Deprecated.static Expectation
NONE
Deprecated.UseExpectation.None
static Expectation
PARAM
Deprecated.static int
USUAL_EXPECTED_COUNT
Deprecated, for removal: This API element is subject to removal in a future version.static int
USUAL_PARAM_POSITION
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Expectation
appropriateExpectation(ExecuteUpdateResultCheckStyle style)
Deprecated, for removal: This API element is subject to removal in a future version.static Expectation
createExpectation(Supplier<? extends Expectation> expectation, boolean callable)
Create an instance of the given class implementingExpectation
.
-
-
-
Field Detail
-
NONE
@Deprecated(since="6.5") public static final Expectation NONE
Deprecated.UseExpectation.None
-
BASIC
@Deprecated(since="6.5") public static final Expectation BASIC
Deprecated.
-
PARAM
@Deprecated(since="6.5") public static final Expectation PARAM
Deprecated.
-
USUAL_EXPECTED_COUNT
@Deprecated(since="6.5", forRemoval=true) public static final int USUAL_EXPECTED_COUNT
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
USUAL_PARAM_POSITION
@Deprecated(since="6.5", forRemoval=true) public static final int USUAL_PARAM_POSITION
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
-
Method Detail
-
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 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.
-
-