Class PreparedStatementDetailsStandard
- java.lang.Object
-
- org.hibernate.engine.jdbc.mutation.internal.PreparedStatementDetailsStandard
-
- All Implemented Interfaces:
PreparedStatementDetails
public class PreparedStatementDetailsStandard extends Object implements PreparedStatementDetails
Describes a particular PreparedStatement within a group
-
-
Constructor Summary
Constructors Constructor Description PreparedStatementDetailsStandard(PreparableMutationOperation tableMutation, String sql, Supplier<PreparedStatement> jdbcStatementCreator, Expectation expectation, JdbcServices jdbcServices)PreparedStatementDetailsStandard(PreparableMutationOperation tableMutation, Supplier<PreparedStatement> jdbcStatementCreator, JdbcServices jdbcServices)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpectationgetExpectation()The expectation used to validate the outcome of the executionTableMappinggetMutatingTableDetails()The name of the mutating tableStringgetSqlString()The SQL used to mutate the tablePreparedStatementgetStatement()ThePreparedStatementgenerated from the SQL.voidreleaseStatement(SharedSessionContractImplementor session)PreparedStatementresolveStatement()ThePreparedStatementgenerated from the SQL.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.engine.jdbc.mutation.group.PreparedStatementDetails
isCallable
-
-
-
-
Constructor Detail
-
PreparedStatementDetailsStandard
public PreparedStatementDetailsStandard(PreparableMutationOperation tableMutation, Supplier<PreparedStatement> jdbcStatementCreator, JdbcServices jdbcServices)
-
PreparedStatementDetailsStandard
public PreparedStatementDetailsStandard(PreparableMutationOperation tableMutation, String sql, Supplier<PreparedStatement> jdbcStatementCreator, Expectation expectation, JdbcServices jdbcServices)
-
-
Method Detail
-
getMutatingTableDetails
public TableMapping getMutatingTableDetails()
Description copied from interface:PreparedStatementDetailsThe name of the mutating table- Specified by:
getMutatingTableDetailsin interfacePreparedStatementDetails
-
releaseStatement
public void releaseStatement(SharedSessionContractImplementor session)
- Specified by:
releaseStatementin interfacePreparedStatementDetails
-
getSqlString
public String getSqlString()
Description copied from interface:PreparedStatementDetailsThe SQL used to mutate the table- Specified by:
getSqlStringin interfacePreparedStatementDetails
-
getStatement
public PreparedStatement getStatement()
Description copied from interface:PreparedStatementDetailsThePreparedStatementgenerated from the SQL. May return null.- Specified by:
getStatementin interfacePreparedStatementDetails- See Also:
PreparedStatementDetails.resolveStatement()
-
resolveStatement
public PreparedStatement resolveStatement()
Description copied from interface:PreparedStatementDetailsThePreparedStatementgenerated from the SQL.Unlike
PreparedStatementDetails.getStatement(), this method will attempt to create the PreparedStatement- Specified by:
resolveStatementin interfacePreparedStatementDetails
-
getExpectation
public Expectation getExpectation()
Description copied from interface:PreparedStatementDetailsThe expectation used to validate the outcome of the execution- Specified by:
getExpectationin interfacePreparedStatementDetails
-
-