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 Expectation
getExpectation()
The expectation used to validate the outcome of the executionTableMapping
getMutatingTableDetails()
The name of the mutating tableString
getSqlString()
The SQL used to mutate the tablePreparedStatement
getStatement()
ThePreparedStatement
generated from the SQL.void
releaseStatement(SharedSessionContractImplementor session)
PreparedStatement
resolveStatement()
ThePreparedStatement
generated from the SQL.String
toString()
-
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:PreparedStatementDetails
The name of the mutating table- Specified by:
getMutatingTableDetails
in interfacePreparedStatementDetails
-
releaseStatement
public void releaseStatement(SharedSessionContractImplementor session)
- Specified by:
releaseStatement
in interfacePreparedStatementDetails
-
getSqlString
public String getSqlString()
Description copied from interface:PreparedStatementDetails
The SQL used to mutate the table- Specified by:
getSqlString
in interfacePreparedStatementDetails
-
getStatement
public PreparedStatement getStatement()
Description copied from interface:PreparedStatementDetails
ThePreparedStatement
generated from the SQL. May return null.- Specified by:
getStatement
in interfacePreparedStatementDetails
- See Also:
PreparedStatementDetails.resolveStatement()
-
resolveStatement
public PreparedStatement resolveStatement()
Description copied from interface:PreparedStatementDetails
ThePreparedStatement
generated from the SQL.Unlike
PreparedStatementDetails.getStatement()
, this method will attempt to create the PreparedStatement- Specified by:
resolveStatement
in interfacePreparedStatementDetails
-
getExpectation
public Expectation getExpectation()
Description copied from interface:PreparedStatementDetails
The expectation used to validate the outcome of the execution- Specified by:
getExpectation
in interfacePreparedStatementDetails
-
-