Class NestedRowProcessingState
java.lang.Object
org.hibernate.sql.exec.internal.BaseExecutionContext
org.hibernate.sql.results.graph.embeddable.internal.NestedRowProcessingState
- All Implemented Interfaces:
ExecutionContext
,RowProcessingState
-
Constructor Summary
ConstructorsConstructorDescriptionNestedRowProcessingState
(AggregateEmbeddableInitializerImpl aggregateEmbeddableInitializer, RowProcessingState processingState) -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterStatement
(LogicalConnectionImplementor logicalConnection) Hook to allow delaying calls toLogicalConnectionImplementor.afterStatement()
.determineEffectiveLockMode
(String alias) void
finishRowProcessing
(boolean wasAdded) Callback at the end of processing the current "row"Get the collection key for the collection which is to be loaded immediately.Should only be used when initializing a bytecode-proxy<T extends InitializerData>
TgetInitializerData
(int initializerId) getJdbcValue
(int position) Retrieve the value corresponding to the given index as part of the "current JDBC row".Access to the state related to the overall processing of the results.RowReader<?>
todo (6.0) : do we want this here? Depends how we handle caching assembler / result mementoboolean
boolean
Determine if the query execution has to be considered by theStatistics
.boolean
boolean
boolean
void
void
registerNonExists
(EntityFetch fetch) void
setInitializerData
(int initializerId, InitializerData state) unwrap()
If this is a row processing state for aggregate components, this will return the underlying row processing state.static NestedRowProcessingState
wrap
(AggregateEmbeddableInitializerImpl aggregateEmbeddableInitializer, RowProcessingState processingState) Methods inherited from class org.hibernate.sql.exec.internal.BaseExecutionContext
getLoadQueryInfluencers, getQueryIdentifier, getSession
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.sql.exec.spi.ExecutionContext
getLoadQueryInfluencers, getQueryIdentifier, getSession, upgradeLocks
Methods inherited from interface org.hibernate.sql.results.jdbc.spi.RowProcessingState
getJdbcValue
-
Constructor Details
-
NestedRowProcessingState
public NestedRowProcessingState(AggregateEmbeddableInitializerImpl aggregateEmbeddableInitializer, RowProcessingState processingState)
-
-
Method Details
-
wrap
public static NestedRowProcessingState wrap(AggregateEmbeddableInitializerImpl aggregateEmbeddableInitializer, RowProcessingState processingState) -
getJdbcValue
Description copied from interface:RowProcessingState
Retrieve the value corresponding to the given index as part of the "current JDBC row". We read all the ResultSet values for the given row one time and store them into an array internally based on the principle that multiple accesses to this array will be significantly faster than accessing them from the ResultSet potentially multiple times.- Specified by:
getJdbcValue
in interfaceRowProcessingState
-
unwrap
Description copied from interface:RowProcessingState
If this is a row processing state for aggregate components, this will return the underlying row processing state.- Specified by:
unwrap
in interfaceRowProcessingState
-
getInitializerData
- Specified by:
getInitializerData
in interfaceRowProcessingState
-
setInitializerData
- Specified by:
setInitializerData
in interfaceRowProcessingState
-
getJdbcValuesSourceProcessingState
Description copied from interface:RowProcessingState
Access to the state related to the overall processing of the results.- Specified by:
getJdbcValuesSourceProcessingState
in interfaceRowProcessingState
-
determineEffectiveLockMode
- Specified by:
determineEffectiveLockMode
in interfaceRowProcessingState
-
needsResolveState
public boolean needsResolveState()- Specified by:
needsResolveState
in interfaceRowProcessingState
-
getRowReader
Description copied from interface:RowProcessingState
todo (6.0) : do we want this here? Depends how we handle caching assembler / result memento- Specified by:
getRowReader
in interfaceRowProcessingState
-
registerNonExists
- Specified by:
registerNonExists
in interfaceRowProcessingState
-
isQueryCacheHit
public boolean isQueryCacheHit()- Specified by:
isQueryCacheHit
in interfaceRowProcessingState
-
finishRowProcessing
public void finishRowProcessing(boolean wasAdded) Description copied from interface:RowProcessingState
Callback at the end of processing the current "row"- Specified by:
finishRowProcessing
in interfaceRowProcessingState
-
getQueryOptions
- Specified by:
getQueryOptions
in interfaceExecutionContext
- Overrides:
getQueryOptions
in classBaseExecutionContext
-
getQueryParameterBindings
- Specified by:
getQueryParameterBindings
in interfaceExecutionContext
- Overrides:
getQueryParameterBindings
in classBaseExecutionContext
-
isScrollResult
public boolean isScrollResult()- Specified by:
isScrollResult
in interfaceExecutionContext
-
getCallback
- Specified by:
getCallback
in interfaceExecutionContext
- Overrides:
getCallback
in classBaseExecutionContext
-
hasCallbackActions
public boolean hasCallbackActions()- Specified by:
hasCallbackActions
in interfaceExecutionContext
-
getCollectionKey
Description copied from interface:ExecutionContext
Get the collection key for the collection which is to be loaded immediately.- Specified by:
getCollectionKey
in interfaceExecutionContext
-
getEntityInstance
Description copied from interface:ExecutionContext
Should only be used when initializing a bytecode-proxy- Specified by:
getEntityInstance
in interfaceExecutionContext
-
getEntityId
- Specified by:
getEntityId
in interfaceExecutionContext
-
getEntityUniqueKeyAttributePath
- Specified by:
getEntityUniqueKeyAttributePath
in interfaceExecutionContext
-
getEntityUniqueKey
- Specified by:
getEntityUniqueKey
in interfaceExecutionContext
-
getRootEntityDescriptor
- Specified by:
getRootEntityDescriptor
in interfaceExecutionContext
-
registerLoadingEntityHolder
- Specified by:
registerLoadingEntityHolder
in interfaceExecutionContext
-
afterStatement
Description copied from interface:ExecutionContext
Hook to allow delaying calls toLogicalConnectionImplementor.afterStatement()
. Mainly used in the case of batching and multi-table mutations- Specified by:
afterStatement
in interfaceExecutionContext
-
hasQueryExecutionToBeAddedToStatistics
public boolean hasQueryExecutionToBeAddedToStatistics()Description copied from interface:ExecutionContext
Determine if the query execution has to be considered by theStatistics
.- Specified by:
hasQueryExecutionToBeAddedToStatistics
in interfaceExecutionContext
- Returns:
- true if the query execution has to be added to the
Statistics
, false otherwise.
-