Package org.hibernate.jdbc
Class Expectations
- java.lang.Object
- org.hibernate.jdbc.Expectations
public classExpectationsextendsObject
Useful operations for dealing withExpectations.
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExpectations.BasicExpectationDeprecated.UseExpectation.RowCount, creating a custom subclass if necessarystatic classExpectations.BasicParamExpectationDeprecated.UseExpectation.OutParameter, creating a custom subclass if necessary
Field Summary
Fields Modifier and Type Field Description staticExpectationBASICDeprecated.staticExpectationNONEDeprecated.staticExpectationPARAMDeprecated.static intUSUAL_EXPECTED_COUNTDeprecated, for removal: This API element is subject to removal in a future version.static intUSUAL_PARAM_POSITIONDeprecated, 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 staticExpectationappropriateExpectation(ExecuteUpdateResultCheckStyle style)Deprecated, for removal: This API element is subject to removal in a future version.staticExpectationcreateExpectation(Supplier<? extendsExpectation> expectation, boolean callable)Create an instance of the given class implementingExpectation.
Field Detail
NONE
@Deprecated(since="6.5")public static final Expectation NONE
Deprecated.
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
@Internalpublic static Expectation createExpectation(Supplier<? extendsExpectation> 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.