Top Description Fields Constructors Methods
org.hibernate.sql.results.graph.entity.internal

public Class BatchInitializeEntitySelectFetchInitializer

extends AbstractBatchEntitySelectFetchInitializer
Class Inheritance
Imports
java.util.HashSet, .Set, org.hibernate.engine.spi.EntityKey, .SharedSessionContractImplementor, org.hibernate.internal.log.LoggingHelper, org.hibernate.metamodel.mapping.internal.ToOneAttributeMapping, org.hibernate.persister.entity.EntityPersister, org.hibernate.spi.NavigablePath, org.hibernate.sql.exec.spi.ExecutionContext, org.hibernate.sql.results.graph.DomainResultAssembler, .FetchParentAccess, org.hibernate.sql.results.jdbc.spi.RowProcessingState

Loads entities from the persistence context or creates proxies if not found there, and initializes all proxies in a batch.

Field Summary

Modifier and TypeField and Description
private final Set<EntityKey>
Inherited from org.hibernate.sql.results.graph.entity.internal.AbstractBatchEntitySelectFetchInitializer:
concreteDescriptorentityKeyfirstEntityInitializeridentifierAssemblerinitializedEntityInstanceparentAccessreferencedModelPartstate

Constructor Summary

AccessConstructor and Description
public
BatchInitializeEntitySelectFetchInitializer(FetchParentAccess parentAccess, ToOneAttributeMapping referencedModelPart, NavigablePath fetchedNavigable, EntityPersister concreteDescriptor, DomainResultAssembler<?> identifierAssembler)

Method Summary

Modifier and TypeMethod and Description
public void
endLoading(ExecutionContext context)

Overrides default org.hibernate.sql.results.graph.Initializer.endLoading.

Lifecycle method called at the very end of the result values processing
public boolean
protected void
public void
resolveInstance(RowProcessingState rowProcessingState)

Implements org.hibernate.sql.results.graph.Initializer.resolveInstance.

Step 2 - Using the key resolved in resolveKey, resolve the instance (of the thing initialized) to use for the current row.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from org.hibernate.sql.results.graph.entity.internal.AbstractBatchEntitySelectFetchInitializer:
finishUpRowgetConcreteDescriptorgetEntityDescriptorgetEntityInstancegetEntityKeygetExistingInitializedInstancegetFetchParentAccessgetInitializedPartgetNavigablePathgetParentEntityAttributegetParentKeyinitializeInstanceloadInstanceregisterResolutionListenerregisterToBatchFetchQueueresolveKeyresolveKey

Field Detail

toBatchLoadback to summary
private final Set<EntityKey> toBatchLoad

Constructor Detail

BatchInitializeEntitySelectFetchInitializerback to summary
public BatchInitializeEntitySelectFetchInitializer(FetchParentAccess parentAccess, ToOneAttributeMapping referencedModelPart, NavigablePath fetchedNavigable, EntityPersister concreteDescriptor, DomainResultAssembler<?> identifierAssembler)

Method Detail

endLoadingback to summary
public void endLoading(ExecutionContext context)

Overrides default org.hibernate.sql.results.graph.Initializer.endLoading.

Doc from org.hibernate.sql.results.graph.Initializer.endLoading.

Lifecycle method called at the very end of the result values processing

Annotations
@Override
isEntityInitializedback to summary
public boolean isEntityInitialized()

Implements org.hibernate.sql.results.graph.entity.EntityInitializer.isEntityInitialized.

Returns:boolean

Doc from org.hibernate.sql.results.graph.entity.EntityInitializer.isEntityInitialized.

true if the current entity associated to this EntityInitializer has been initialized

Annotations
@Override
registerResolutionListenerback to summary
protected void registerResolutionListener()

Implements abstract org.hibernate.sql.results.graph.entity.internal.AbstractBatchEntitySelectFetchInitializer.registerResolutionListener.

Annotations
@Override
resolveInstanceback to summary
public void resolveInstance(RowProcessingState rowProcessingState)

Implements org.hibernate.sql.results.graph.Initializer.resolveInstance.

Doc from org.hibernate.sql.results.graph.Initializer.resolveInstance.

Step 2 - Using the key resolved in resolveKey, resolve the instance (of the thing initialized) to use for the current row. After this point, the initializer knows the entity/collection/component instance for the current row based on the resolved key todo (6.0) : much of the various implementations of this are similar enough to handle in a common base implementation (templating?) things like resolving as managed (Session cache), from second-level cache, from LoadContext, etc..

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override