Top Description Methods
org.hibernate.sql.exec.spi

public Interface ExecutionContext

Known Direct Subinterfaces
org.hibernate.sql.results.jdbc.spi.RowProcessingState
Known Direct Implementers
org.hibernate.sql.exec.internal.BaseExecutionContext
Imports
org.hibernate.engine.spi.CollectionKey, .EntityHolder, .LoadQueryInfluencers, .SharedSessionContractImplementor, org.hibernate.metamodel.mapping.EntityMappingType, org.hibernate.query.spi.QueryOptions, .QueryParameterBindings, org.hibernate.resource.jdbc.spi.LogicalConnectionImplementor

A context for execution of SQL statements expressed via SQL AST and JdbcOperation

Method Summary

Modifier and TypeMethod and Description
public default void
public Callback
public default CollectionKey
getCollectionKey()

Get the collection key for the collection which is to be loaded immediately.

public default Object
public default Object
getEntityInstance()

Should only be used when initializing a bytecode-proxy

public LoadQueryInfluencers
public String
public QueryOptions
public QueryParameterBindings
public default EntityMappingType
public SharedSessionContractImplementor
public default boolean
public default boolean

Returns:

true if the query execution has to be added to the org.hibernate.stat.Statistics, false otherwise.
hasQueryExecutionToBeAddedToStatistics
()

Determine if the query execution has to be considered by the org.hibernate.stat.Statistics.

public default boolean
public default void
public default boolean
upgradeLocks()

Does this query return objects that might be already cached by the session, whose lock mode may need upgrading

Method Detail

afterStatementback to summary
public default void afterStatement(LogicalConnectionImplementor logicalConnection)

Hook to allow delaying calls to LogicalConnectionImplementor#afterStatement(). Mainly used in the case of batching and multi-table mutations

getCallbackback to summary
public Callback getCallback()
getCollectionKeyback to summary
public default CollectionKey getCollectionKey()

Get the collection key for the collection which is to be loaded immediately.

getEntityIdback to summary
public default Object getEntityId()
getEntityInstanceback to summary
public default Object getEntityInstance()

Should only be used when initializing a bytecode-proxy

getLoadQueryInfluencersback to summary
public LoadQueryInfluencers getLoadQueryInfluencers()
getQueryIdentifierback to summary
public String getQueryIdentifier(String sql)
getQueryOptionsback to summary
public QueryOptions getQueryOptions()
getQueryParameterBindingsback to summary
public QueryParameterBindings getQueryParameterBindings()
getRootEntityDescriptorback to summary
public default EntityMappingType getRootEntityDescriptor()
getSessionback to summary
public SharedSessionContractImplementor getSession()
hasCallbackActionsback to summary
public default boolean hasCallbackActions()
hasQueryExecutionToBeAddedToStatisticsback to summary
public default boolean hasQueryExecutionToBeAddedToStatistics()

Determine if the query execution has to be considered by the org.hibernate.stat.Statistics.

Returns:boolean

true if the query execution has to be added to the org.hibernate.stat.Statistics, false otherwise.

isScrollResultback to summary
public default boolean isScrollResult()
registerLoadingEntityHolderback to summary
public default void registerLoadingEntityHolder(EntityHolder holder)
upgradeLocksback to summary
public default boolean upgradeLocks()

Does this query return objects that might be already cached by the session, whose lock mode may need upgrading