Package org.hibernate.sql.exec.spi
Interface ExecutionContext
- All Known Subinterfaces:
RowProcessingState
- All Known Implementing Classes:
BaseExecutionContext,LockingExecutionContext,NestedRowProcessingState,NoCallbackExecutionContext,OutputsExecutionContext,RowProcessingStateStandardImpl,SqmJdbcExecutionContextAdapter
public interface ExecutionContext
A context for execution of SQL statements expressed via
SQL AST and JdbcOperation
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidafterStatement(LogicalConnectionImplementor logicalConnection) Hook to allow delaying calls toLogicalConnectionImplementor.afterStatement().default CollectionKeyGet the collection key for the collection which is to be loaded immediately.default Objectdefault ObjectShould only be used when initializing a bytecode-proxydefault Objectdefault StringgetQueryIdentifier(String sql) default EntityMappingTypedefault booleandefault booleanDetermine if the query execution has to be considered by theStatistics.default booleandefault booleandefault voiddefault booleanDoes this query return objects that might be already cached by the session, whose lock mode may need upgrading
-
Method Details
-
isScrollResult
default boolean isScrollResult() -
getSession
SharedSessionContractImplementor getSession() -
isTransactionActive
default boolean isTransactionActive() -
getQueryOptions
QueryOptions getQueryOptions() -
getLoadQueryInfluencers
LoadQueryInfluencers getLoadQueryInfluencers() -
getQueryParameterBindings
QueryParameterBindings getQueryParameterBindings() -
getCallback
Callback getCallback() -
hasCallbackActions
default boolean hasCallbackActions() -
getQueryIdentifier
-
getCollectionKey
Get the collection key for the collection which is to be loaded immediately. -
getEntityInstance
Should only be used when initializing a bytecode-proxy -
getEntityId
-
getEntityUniqueKeyAttributePath
-
getEntityUniqueKey
-
getRootEntityDescriptor
-
registerLoadingEntityHolder
-
afterStatement
Hook to allow delaying calls toLogicalConnectionImplementor.afterStatement(). Mainly used in the case of batching and multi-table mutations -
hasQueryExecutionToBeAddedToStatistics
default boolean hasQueryExecutionToBeAddedToStatistics()Determine if the query execution has to be considered by theStatistics.- Returns:
- true if the query execution has to be added to the
Statistics, false otherwise.
-
upgradeLocks
default boolean upgradeLocks()Does this query return objects that might be already cached by the session, whose lock mode may need upgrading
-