Top Description Fields Constructors Methods
org.hibernate.engine.jdbc.mutation.internal

public Class PreparedStatementDetailsStandard

extends Object
implements PreparedStatementDetails
Class Inheritance
All Implemented Interfaces
org.hibernate.engine.jdbc.mutation.group.PreparedStatementDetails
Imports
java.sql.PreparedStatement, .SQLException, java.util.function.Supplier, org.hibernate.engine.jdbc.mutation.group.PreparedStatementDetails, .PreparedStatementGroup, org.hibernate.engine.jdbc.spi.JdbcServices, org.hibernate.engine.spi.SharedSessionContractImplementor, org.hibernate.jdbc.Expectation, org.hibernate.sql.model.PreparableMutationOperation, .TableMapping

Describes a particular PreparedStatement within a group
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final Expectation
private final JdbcServices
private final Supplier<PreparedStatement>
private final TableMapping
private final String
private PreparedStatement

Constructor Summary

AccessConstructor and Description
public
public
PreparedStatementDetailsStandard(PreparableMutationOperation tableMutation, String sql, Supplier<PreparedStatement> jdbcStatementCreator, Expectation expectation, JdbcServices jdbcServices)

Method Summary

Modifier and TypeMethod and Description
public Expectation
getExpectation()

Implements org.hibernate.engine.jdbc.mutation.group.PreparedStatementDetails.getExpectation.

The expectation used to validate the outcome of the execution
public TableMapping
public String
public PreparedStatement
public void
public PreparedStatement
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

expectationback to summary
private final Expectation expectation
jdbcServicesback to summary
private final JdbcServices jdbcServices
jdbcStatementCreatorback to summary
private final Supplier<PreparedStatement> jdbcStatementCreator
mutatingTableDetailsback to summary
private final TableMapping mutatingTableDetails
sqlback to summary
private final String sql
statementback to summary
private PreparedStatement statement

Constructor Detail

PreparedStatementDetailsStandardback to summary
public PreparedStatementDetailsStandard(PreparableMutationOperation tableMutation, Supplier<PreparedStatement> jdbcStatementCreator, JdbcServices jdbcServices)
PreparedStatementDetailsStandardback to summary
public PreparedStatementDetailsStandard(PreparableMutationOperation tableMutation, String sql, Supplier<PreparedStatement> jdbcStatementCreator, Expectation expectation, JdbcServices jdbcServices)

Method Detail

getExpectationback to summary
public Expectation getExpectation()

Implements org.hibernate.engine.jdbc.mutation.group.PreparedStatementDetails.getExpectation.

Doc from org.hibernate.engine.jdbc.mutation.group.PreparedStatementDetails.getExpectation.

The expectation used to validate the outcome of the execution

Annotations
@Override
getMutatingTableDetailsback to summary
public TableMapping getMutatingTableDetails()

Implements org.hibernate.engine.jdbc.mutation.group.PreparedStatementDetails.getMutatingTableDetails.

Doc from org.hibernate.engine.jdbc.mutation.group.PreparedStatementDetails.getMutatingTableDetails.

The name of the mutating table

Annotations
@Override
getSqlStringback to summary
public String getSqlString()

Implements org.hibernate.engine.jdbc.mutation.group.PreparedStatementDetails.getSqlString.

Doc from org.hibernate.engine.jdbc.mutation.group.PreparedStatementDetails.getSqlString.

The SQL used to mutate the table

Annotations
@Override
getStatementback to summary
public PreparedStatement getStatement()

Implements org.hibernate.engine.jdbc.mutation.group.PreparedStatementDetails.getStatement.

Doc from org.hibernate.engine.jdbc.mutation.group.PreparedStatementDetails.getStatement.

The PreparedStatement generated from the SQL. May return null.

Annotations
@Override
releaseStatementback to summary
public void releaseStatement(SharedSessionContractImplementor session)

Implements org.hibernate.engine.jdbc.mutation.group.PreparedStatementDetails.releaseStatement.

Annotations
@Override
resolveStatementback to summary
public PreparedStatement resolveStatement()

Implements org.hibernate.engine.jdbc.mutation.group.PreparedStatementDetails.resolveStatement.

Doc from org.hibernate.engine.jdbc.mutation.group.PreparedStatementDetails.resolveStatement.

The PreparedStatement generated from the SQL.

Unlike getStatement(), this method will attempt to create the PreparedStatement

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override