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

public Class EntitySelectFetchByUniqueKeyInitializer

extends EntitySelectFetchInitializer
Class Inheritance
Imports
org.hibernate.engine.spi.EntityUniqueKey, .PersistenceContext, .SharedSessionContractImplementor, org.hibernate.internal.log.LoggingHelper, org.hibernate.metamodel.mapping.ForeignKeyDescriptor, org.hibernate.metamodel.mapping.internal.ToOneAttributeMapping, org.hibernate.persister.entity.EntityPersister, org.hibernate.spi.EntityIdentifierNavigablePath, .NavigablePath, org.hibernate.sql.results.graph.DomainResultAssembler, .FetchParentAccess, org.hibernate.sql.results.graph.entity.EntityInitializer, org.hibernate.sql.results.jdbc.spi.JdbcValuesSourceProcessingState, .RowProcessingState

Author
Andrea Boriero

Field Summary

Modifier and TypeField and Description
private final ToOneAttributeMapping
Inherited from org.hibernate.sql.results.graph.entity.internal.EntitySelectFetchInitializer:
concreteDescriptorentityIdentifierentityInstancekeyAssemblerparentAccessstate

Constructor Summary

AccessConstructor and Description
public
EntitySelectFetchByUniqueKeyInitializer(FetchParentAccess parentAccess, ToOneAttributeMapping fetchedAttribute, NavigablePath fetchedNavigable, EntityPersister concreteDescriptor, DomainResultAssembler<?> keyAssembler)

Method Summary

Modifier and TypeMethod and Description
private EntityInitializer
public void
public void
resolveInstance(RowProcessingState rowProcessingState)

Overrides org.hibernate.sql.results.graph.entity.internal.EntitySelectFetchInitializer.resolveInstance.

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
Inherited from org.hibernate.sql.results.graph.entity.internal.EntitySelectFetchInitializer:
finishUpRowgetConcreteDescriptorgetEntityDescriptorgetEntityInstancegetEntityKeygetFetchParentAccessgetInitializedPartgetNavigablePathgetParentKeyisAttributeAssignableToConcreteDescriptorisEntityInitializedregisterResolutionListenerresolveKey

Field Detail

fetchedAttributeback to summary
private final ToOneAttributeMapping fetchedAttribute

Constructor Detail

EntitySelectFetchByUniqueKeyInitializerback to summary
public EntitySelectFetchByUniqueKeyInitializer(FetchParentAccess parentAccess, ToOneAttributeMapping fetchedAttribute, NavigablePath fetchedNavigable, EntityPersister concreteDescriptor, DomainResultAssembler<?> keyAssembler)

Method Detail

getParentEntityInitializerback to summary
private EntityInitializer getParentEntityInitializer(FetchParentAccess parentAccess)
initializeInstanceback to summary
public void initializeInstance(RowProcessingState rowProcessingState)

Overrides org.hibernate.sql.results.graph.entity.internal.EntitySelectFetchInitializer.initializeInstance.

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
resolveInstanceback to summary
public void resolveInstance(RowProcessingState rowProcessingState)

Overrides org.hibernate.sql.results.graph.entity.internal.EntitySelectFetchInitializer.resolveInstance.

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 org.hibernate.sql.results.graph.entity.internal.EntitySelectFetchInitializer.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override