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

public abstract Class AbstractBatchEntitySelectFetchInitializer

extends AbstractFetchParentAccess
implements EntityInitializer
Class Inheritance
All Implemented Interfaces
org.hibernate.sql.results.graph.entity.EntityInitializer, org.hibernate.sql.results.graph.FetchParentAccess, org.hibernate.sql.results.graph.Initializer
Known Direct Subclasses
org.hibernate.sql.results.graph.entity.internal.BatchEntityInsideEmbeddableSelectFetchInitializer, org.hibernate.sql.results.graph.entity.internal.BatchEntitySelectFetchInitializer, org.hibernate.sql.results.graph.entity.internal.BatchInitializeEntitySelectFetchInitializer
Imports
java.util.function.Consumer, org.hibernate.bytecode.enhance.spi.interceptor.EnhancementAsProxyLazinessInterceptor, org.hibernate.engine.spi.EntityHolder, .EntityKey, .PersistenceContext, .PersistentAttributeInterceptable, .PersistentAttributeInterceptor, .SharedSessionContractImplementor, org.hibernate.metamodel.mapping.AttributeMapping, .ModelPart, org.hibernate.metamodel.mapping.internal.ToOneAttributeMapping, org.hibernate.persister.entity.EntityPersister, org.hibernate.spi.NavigablePath, org.hibernate.sql.results.graph.AbstractFetchParentAccess, .DomainResultAssembler, .FetchParentAccess, org.hibernate.sql.results.graph.entity.EntityInitializer, org.hibernate.sql.results.jdbc.spi.RowProcessingState

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static enum

Field Summary

Modifier and TypeField and Description
protected final EntityPersister
protected EntityKey
protected final EntityInitializer
protected final DomainResultAssembler<?>
protected Object
protected final FetchParentAccess
protected final ToOneAttributeMapping
protected AbstractBatchEntitySelectFetchInitializer.State

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public void
finishUpRow(RowProcessingState rowProcessingState)

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

Lifecycle method called at the end of the current row processing.
public EntityPersister
public EntityPersister
getEntityDescriptor()

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

Get the descriptor for the type of entity being initialized
public Object
getEntityInstance()

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

Get the entity instance for the currently processing "row".
public EntityKey
protected Object
public FetchParentAccess
public ModelPart
public NavigablePath
protected AttributeMapping
public Object
public void
initializeInstance(RowProcessingState rowProcessingState)

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

Step 3 - Initialize the state of the instance resolved in resolveInstance from the current row values.
private boolean
protected static Object
protected abstract void
public void
protected void
public void
resolveKey(RowProcessingState rowProcessingState)

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

Step 1 - Resolve the key value for this initializer for the current row.
protected void
resolveKey(RowProcessingState rowProcessingState, ToOneAttributeMapping referencedModelPart, FetchParentAccess parentAccess)

Inherited from org.hibernate.sql.results.graph.AbstractFetchParentAccess:
clearResolutionListenersnotifyResolutionListeners

Field Detail

concreteDescriptorback to summary
protected final EntityPersister concreteDescriptor
entityKeyback to summary
protected EntityKey entityKey
firstEntityInitializerback to summary
protected final EntityInitializer firstEntityInitializer
identifierAssemblerback to summary
protected final DomainResultAssembler<?> identifierAssembler
initializedEntityInstanceback to summary
protected Object initializedEntityInstance
parentAccessback to summary
protected final FetchParentAccess parentAccess
referencedModelPartback to summary
protected final ToOneAttributeMapping referencedModelPart
stateback to summary
protected AbstractBatchEntitySelectFetchInitializer.State state

Constructor Detail

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

Method Detail

finishUpRowback to summary
public void finishUpRow(RowProcessingState rowProcessingState)

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

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

Lifecycle method called at the end of the current row processing. Provides ability to complete processing from the current row and prepare for the next row.

Annotations
@Override
getConcreteDescriptorback to summary
public EntityPersister getConcreteDescriptor()

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

Annotations
@Override
getEntityDescriptorback to summary
public EntityPersister getEntityDescriptor()

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

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

Get the descriptor for the type of entity being initialized

Annotations
@Override
getEntityInstanceback to summary
public Object getEntityInstance()

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

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

Get the entity instance for the currently processing "row".

Annotations
@Override
getEntityKeyback to summary
public EntityKey getEntityKey()

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

Annotations
@Override
getExistingInitializedInstanceback to summary
protected Object getExistingInitializedInstance(RowProcessingState rowProcessingState)
getFetchParentAccessback to summary
public FetchParentAccess getFetchParentAccess()

Overrides default org.hibernate.sql.results.graph.FetchParentAccess.getFetchParentAccess.

Annotations
@Override
getInitializedPartback to summary
public ModelPart getInitializedPart()

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

getNavigablePathback to summary
public NavigablePath getNavigablePath()

Implements org.hibernate.sql.results.graph.FetchParentAccess.getNavigablePath.

Annotations
@Override
getParentEntityAttributeback to summary
protected AttributeMapping getParentEntityAttribute(String attributeName)
getParentKeyback to summary
public Object getParentKey()

Implements org.hibernate.sql.results.graph.FetchParentAccess.getParentKey.

Annotations
@Override
initializeInstanceback to summary
public void initializeInstance(RowProcessingState rowProcessingState)

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

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

Step 3 - Initialize the state of the instance resolved in resolveInstance from the current row values. All resolved state for the current row is injected into the resolved instance

Annotations
@Override
isInitializedback to summary
private boolean isInitialized(Object entity)
loadInstanceback to summary
protected static Object loadInstance(EntityKey entityKey, ToOneAttributeMapping referencedModelPart, SharedSessionContractImplementor session)
registerResolutionListenerback to summary
protected abstract void registerResolutionListener()
registerResolutionListenerback to summary
public void registerResolutionListener(Consumer<Object> listener)

Overrides org.hibernate.sql.results.graph.AbstractFetchParentAccess.registerResolutionListener.

Implements org.hibernate.sql.results.graph.FetchParentAccess.registerResolutionListener.

Doc from org.hibernate.sql.results.graph.FetchParentAccess.registerResolutionListener.

Register a listener to be notified when the parent is "resolved"

Annotations
@Override
registerToBatchFetchQueueback to summary
protected void registerToBatchFetchQueue(RowProcessingState rowProcessingState)
resolveKeyback to summary
public void resolveKey(RowProcessingState rowProcessingState)

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

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

Step 1 - Resolve the key value for this initializer for the current row. After this point, the initializer knows the entity/collection/component key for the current row

Annotations
@Override
resolveKeyback to summary
protected void resolveKey(RowProcessingState rowProcessingState, ToOneAttributeMapping referencedModelPart, FetchParentAccess parentAccess)
org.hibernate.sql.results.graph.entity.internal back to summary

pack-priv final Enum AbstractBatchEntitySelectFetchInitializer.State

extends Enum<AbstractBatchEntitySelectFetchInitializer.State>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final AbstractBatchEntitySelectFetchInitializer.State
public static final AbstractBatchEntitySelectFetchInitializer.State
public static final AbstractBatchEntitySelectFetchInitializer.State
public static final AbstractBatchEntitySelectFetchInitializer.State

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static AbstractBatchEntitySelectFetchInitializer.State
public static AbstractBatchEntitySelectFetchInitializer.State[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

INITIALIZEDback to summary
public static final AbstractBatchEntitySelectFetchInitializer.State INITIALIZED
KEY_RESOLVEDback to summary
public static final AbstractBatchEntitySelectFetchInitializer.State KEY_RESOLVED
MISSINGback to summary
public static final AbstractBatchEntitySelectFetchInitializer.State MISSING
UNINITIALIZEDback to summary
public static final AbstractBatchEntitySelectFetchInitializer.State UNINITIALIZED

Constructor Detail

Stateback to summary
private State()

Method Detail

valueOfback to summary
public static AbstractBatchEntitySelectFetchInitializer.State valueOf(String name)
valuesback to summary
public static AbstractBatchEntitySelectFetchInitializer.State[] values()