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

public abstract Class AbstractNonAggregatedIdentifierMappingInitializer

extends AbstractFetchParentAccess
implements EmbeddableInitializer, ValueAccess
Class Inheritance
All Implemented Interfaces
org.hibernate.metamodel.spi.ValueAccess, org.hibernate.sql.results.graph.embeddable.EmbeddableInitializer, org.hibernate.sql.results.graph.FetchParentAccess, org.hibernate.sql.results.graph.Initializer
Known Direct Subclasses
org.hibernate.sql.results.graph.embeddable.internal.NonAggregatedIdentifierMappingFetchInitializer, org.hibernate.sql.results.graph.embeddable.internal.NonAggregatedIdentifierMappingResultInitializer
Imports
java.util.List, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.metamodel.mapping.AttributeMapping, .EmbeddableMappingType, .EmbeddableValuedModelPart, .ForeignKeyDescriptor, .NonAggregatedIdentifierMapping, org.hibernate.metamodel.mapping.internal.ToOneAttributeMapping, org.hibernate.metamodel.spi.EmbeddableRepresentationStrategy, .ValueAccess, org.hibernate.proxy.HibernateProxy, .LazyInitializer, org.hibernate.spi.EntityIdentifierNavigablePath, .NavigablePath, org.hibernate.sql.results.graph.AbstractFetchParentAccess, .AssemblerCreationState, .DomainResultAssembler, .Fetch, .FetchParentAccess, .Fetchable, .Initializer, org.hibernate.sql.results.graph.embeddable.AbstractEmbeddableInitializer, .EmbeddableInitializer, .EmbeddableLoadingLogger, .EmbeddableResultGraphNode, org.hibernate.sql.results.graph.entity.EntityInitializer, org.hibernate.sql.results.internal.NullValueAssembler, org.hibernate.sql.results.jdbc.spi.RowProcessingState

Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static enum

Field Summary

Modifier and TypeField and Description
private final DomainResultAssembler<?>[]
protected Object
private final NonAggregatedIdentifierMapping
private final FetchParentAccess
private final boolean
private final Object[]
private final EmbeddableMappingType
private final EmbeddableRepresentationStrategy
private final SessionFactoryImplementor
sessionFactory

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
private AbstractNonAggregatedIdentifierMappingInitializer.State
private final Object[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected static DomainResultAssembler<?>[]
createAssemblers(FetchParentAccess parentAccess, EmbeddableResultGraphNode resultDescriptor, AssemblerCreationState creationState, EmbeddableMappingType embeddableTypeDescriptor)

private void
public FetchParentAccess
public EntityInitializer
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 Object
public FetchParentAccess
public EmbeddableValuedModelPart
public NavigablePath
public Object
getOwner()

Overrides default org.hibernate.metamodel.spi.ValueAccess.getOwner.

Access to the owner of the instance being instantiated
public <T> T
getValue(int i, Class<T> clazz)

Overrides default org.hibernate.metamodel.spi.ValueAccess.getValue.

Access to an individual value.
public Object[]
getValues()

Implements org.hibernate.metamodel.spi.ValueAccess.getValues.

The complete set of values.
public void
initializeInstance(RowProcessingState processingState)

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
public void
resolveInstance(RowProcessingState processingState)

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 void
resolveKey(RowProcessingState processingState)

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

Step 1 - Resolve the key value for this initializer for the current row.
public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from org.hibernate.sql.results.graph.AbstractFetchParentAccess:
clearResolutionListenersnotifyResolutionListenersregisterResolutionListener

Field Detail

assemblersback to summary
private final DomainResultAssembler<?>[] assemblers
compositeInstanceback to summary
protected Object compositeInstance
embeddedback to summary
private final NonAggregatedIdentifierMapping embedded
fetchParentAccessback to summary
private final FetchParentAccess fetchParentAccess
hasIdClassback to summary
private final boolean hasIdClass
idClassStateback to summary
private final Object[] idClassState
representationEmbeddableback to summary
private final EmbeddableMappingType representationEmbeddable
representationStrategyback to summary
private final EmbeddableRepresentationStrategy representationStrategy
sessionFactoryback to summary
private final SessionFactoryImplementor sessionFactory

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

stateback to summary
private AbstractNonAggregatedIdentifierMappingInitializer.State state
virtualIdStateback to summary
private final Object[] virtualIdState

Constructor Detail

AbstractNonAggregatedIdentifierMappingInitializerback to summary
public AbstractNonAggregatedIdentifierMappingInitializer(EmbeddableResultGraphNode resultDescriptor, FetchParentAccess fetchParentAccess, AssemblerCreationState creationState)

Method Detail

createAssemblersback to summary
protected static DomainResultAssembler<?>[] createAssemblers(FetchParentAccess parentAccess, EmbeddableResultGraphNode resultDescriptor, AssemblerCreationState creationState, EmbeddableMappingType embeddableTypeDescriptor)
extractRowStateback to summary
private void extractRowState(RowProcessingState processingState)
findFirstEntityDescriptorAccessback to summary
public FetchParentAccess findFirstEntityDescriptorAccess()

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

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

Find the first entity access up the fetch parent graph

Annotations
@Override
findFirstEntityInitializerback to summary
public EntityInitializer findFirstEntityInitializer()

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

Annotations
@Override
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
getCompositeInstanceback to summary
public Object getCompositeInstance()

Implements org.hibernate.sql.results.graph.embeddable.EmbeddableInitializer.getCompositeInstance.

Annotations
@Override
getFetchParentAccessback to summary
public FetchParentAccess getFetchParentAccess()

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

Implements org.hibernate.sql.results.graph.embeddable.EmbeddableInitializer.getFetchParentAccess.

Annotations
@Override
getInitializedPartback to summary
public EmbeddableValuedModelPart getInitializedPart()

Implements org.hibernate.sql.results.graph.embeddable.EmbeddableInitializer.getInitializedPart, org.hibernate.sql.results.graph.Initializer.getInitializedPart.

Annotations
@Override
getNavigablePathback to summary
public NavigablePath getNavigablePath()

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

getOwnerback to summary
public Object getOwner()

Overrides default org.hibernate.metamodel.spi.ValueAccess.getOwner.

Doc from org.hibernate.metamodel.spi.ValueAccess.getOwner.

Access to the owner of the instance being instantiated

Annotations
@Override
getValueback to summary
public <T> T getValue(int i, Class<T> clazz)

Overrides default org.hibernate.metamodel.spi.ValueAccess.getValue.

Doc from org.hibernate.metamodel.spi.ValueAccess.getValue.

Access to an individual value.

Annotations
@Override
getValuesback to summary
public Object[] getValues()

Implements org.hibernate.metamodel.spi.ValueAccess.getValues.

Doc from org.hibernate.metamodel.spi.ValueAccess.getValues.

The complete set of values.

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

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
isFindByIdLookupback to summary
private boolean isFindByIdLookup(RowProcessingState processingState)
resolveInstanceback to summary
public void resolveInstance(RowProcessingState processingState)

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
resolveKeyback to summary
public void resolveKey(RowProcessingState processingState)

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

Implements org.hibernate.sql.results.graph.embeddable.EmbeddableInitializer.resolveState.

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
org.hibernate.sql.results.graph.embeddable.internal back to summary

pack-priv final Enum AbstractNonAggregatedIdentifierMappingInitializer.State

extends Enum<AbstractNonAggregatedIdentifierMappingInitializer.State>
Class Inheritance

Field Summary

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Field Detail

EXTRACTEDback to summary
public static final AbstractNonAggregatedIdentifierMappingInitializer.State EXTRACTED
INITIALback to summary
public static final AbstractNonAggregatedIdentifierMappingInitializer.State INITIAL
INJECTEDback to summary
public static final AbstractNonAggregatedIdentifierMappingInitializer.State INJECTED
NULLback to summary
public static final AbstractNonAggregatedIdentifierMappingInitializer.State NULL

Constructor Detail

Stateback to summary
private State()

Method Detail

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