Package org.hibernate.sql.exec.spi
Interface ExecutionContext
-
- All Known Subinterfaces:
RowProcessingState
- All Known Implementing Classes:
BaseExecutionContext
,NestedRowProcessingState
,NoCallbackExecutionContext
,OutputsExecutionContext
,RowProcessingStateStandardImpl
,SqmJdbcExecutionContextAdapter
public interface ExecutionContext
A context for execution of SQL statements expressed via SQL AST and JdbcOperation
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
afterStatement(LogicalConnectionImplementor logicalConnection)
Hook to allow delaying calls toLogicalConnectionImplementor.afterStatement()
.Callback
getCallback()
default CollectionKey
getCollectionKey()
Get the collection key for the collection which is to be loaded immediately.default Object
getEntityId()
default Object
getEntityInstance()
Should only be used when initializing a bytecode-proxyLoadQueryInfluencers
getLoadQueryInfluencers()
String
getQueryIdentifier(String sql)
QueryOptions
getQueryOptions()
QueryParameterBindings
getQueryParameterBindings()
default EntityMappingType
getRootEntityDescriptor()
SharedSessionContractImplementor
getSession()
default boolean
hasCallbackActions()
default boolean
hasQueryExecutionToBeAddedToStatistics()
Determine if the query execution has to be considered by theStatistics
.default boolean
isScrollResult()
default void
registerLoadingEntityEntry(EntityKey entityKey, LoadingEntityEntry entry)
default boolean
upgradeLocks()
Does this query return objects that might be already cached by the session, whose lock mode may need upgrading
-
-
-
Method Detail
-
isScrollResult
default boolean isScrollResult()
-
getSession
SharedSessionContractImplementor getSession()
-
getQueryOptions
QueryOptions getQueryOptions()
-
getLoadQueryInfluencers
LoadQueryInfluencers getLoadQueryInfluencers()
-
getQueryParameterBindings
QueryParameterBindings getQueryParameterBindings()
-
getCallback
Callback getCallback()
-
hasCallbackActions
default boolean hasCallbackActions()
-
getCollectionKey
default CollectionKey getCollectionKey()
Get the collection key for the collection which is to be loaded immediately.
-
getEntityInstance
default Object getEntityInstance()
Should only be used when initializing a bytecode-proxy
-
getEntityId
default Object getEntityId()
-
getRootEntityDescriptor
default EntityMappingType getRootEntityDescriptor()
-
registerLoadingEntityEntry
default void registerLoadingEntityEntry(EntityKey entityKey, LoadingEntityEntry entry)
-
afterStatement
default void afterStatement(LogicalConnectionImplementor logicalConnection)
Hook to allow delaying calls toLogicalConnectionImplementor.afterStatement()
. Mainly used in the case of batching and multi-table mutations todo (6.0) : come back and make sure we are calling this at appropriate times. despite the name, it should be called after a logical group of statements - e.g., after all of the delete statements against all of the tables for a particular entity
-
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
-
-