Top Description Methods
org.hibernate.engine.jdbc.mutation.group

public Interface PreparedStatementGroup

Known Direct Implementers
org.hibernate.engine.jdbc.mutation.internal.PreparedStatementGroupNone, org.hibernate.engine.jdbc.mutation.internal.PreparedStatementGroupSingleTable, org.hibernate.engine.jdbc.mutation.internal.PreparedStatementGroupStandard
Annotations
@Incubating
Imports
java.util.function.BiConsumer, .Predicate, org.hibernate.Incubating

Grouping of java.sql.PreparedStatement references.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public void
forEachStatement(BiConsumer<String, PreparedStatementDetails> action)

Visit the details for each table mutation

public int
public int
getNumberOfStatements()

The number of statements in this group

public PreparedStatementDetails
getPreparedStatementDetails(String tableName)

Get the PreparedStatement in this group related to the given table-name.

public PreparedStatementDetails
getSingleStatementDetails()

Get the single statement details.

public boolean
public void
release()

Release resources held by this group.

public PreparedStatementDetails
resolvePreparedStatementDetails(String tableName)

Get the PreparedStatement in this group related to the given table-name.

Method Detail

forEachStatementback to summary
public void forEachStatement(BiConsumer<String, PreparedStatementDetails> action)

Visit the details for each table mutation

getNumberOfActiveStatementsback to summary
public int getNumberOfActiveStatements()
getNumberOfStatementsback to summary
public int getNumberOfStatements()

The number of statements in this group

getPreparedStatementDetailsback to summary
public PreparedStatementDetails getPreparedStatementDetails(String tableName)

Get the PreparedStatement in this group related to the given table-name. Will return null if no descriptor (yet) exists

getSingleStatementDetailsback to summary
public PreparedStatementDetails getSingleStatementDetails()

Get the single statement details.

Exceptions
IllegalStateException:
if there is more than one statement associated with this group.
hasMatchingback to summary
public boolean hasMatching(Predicate<PreparedStatementDetails> filter)
releaseback to summary
public void release()

Release resources held by this group.

resolvePreparedStatementDetailsback to summary
public PreparedStatementDetails resolvePreparedStatementDetails(String tableName)

Get the PreparedStatement in this group related to the given table-name. If the descriptor does not already exist, this method will create it.

See Also
getPreparedStatementDetails