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

public abstract Class AbstractEmbeddableInitializer

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.AggregateEmbeddableFetchInitializer, org.hibernate.sql.results.graph.embeddable.internal.AggregateEmbeddableResultInitializer, org.hibernate.sql.results.graph.embeddable.internal.EmbeddableFetchInitializer, org.hibernate.sql.results.graph.embeddable.internal.EmbeddableResultInitializer
Imports
org.hibernate.engine.internal.ManagedTypeHelper, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.metamodel.mapping.CollectionPart, .CompositeIdentifierMapping, .EmbeddableMappingType, .EmbeddableValuedModelPart, .ForeignKeyDescriptor, .VirtualModelPart, org.hibernate.metamodel.mapping.internal.EmbeddedCollectionPart, org.hibernate.metamodel.spi.ValueAccess, org.hibernate.property.access.spi.PropertyAccess, 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.collection.CollectionInitializer, 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
protected final DomainResultAssembler<?>[]
protected Object
private final boolean
private final EmbeddableValuedModelPart
private final FetchParentAccess
private final boolean
private final Object[]
private final SessionFactoryImplementor
sessionFactory

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
private AbstractEmbeddableInitializer.State
private RowProcessingState

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

private Object
createCompositeInstance(NavigablePath navigablePath, SessionFactoryImplementor sessionFactory)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
private Initializer
private Object
private AbstractEmbeddableInitializer.State
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
private EntityInitializer
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.
private void
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 static boolean
isPartOfKey(EmbeddableValuedModelPart modelPart, NavigablePath navigablePath, FetchParentAccess fetchParentAccess)

private void
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
protected final DomainResultAssembler<?>[] assemblers
compositeInstanceback to summary
protected Object compositeInstance
createEmptyCompositesEnabledback to summary
private final boolean createEmptyCompositesEnabled
embeddedback to summary
private final EmbeddableValuedModelPart embedded
fetchParentAccessback to summary
private final FetchParentAccess fetchParentAccess
isPartOfKeyback to summary
private final boolean isPartOfKey
rowStateback to summary
private final Object[] rowState
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 AbstractEmbeddableInitializer.State state
wrappedProcessingStateback to summary
private RowProcessingState wrappedProcessingState

Constructor Detail

AbstractEmbeddableInitializerback to summary
public AbstractEmbeddableInitializer(EmbeddableResultGraphNode resultDescriptor, FetchParentAccess fetchParentAccess, AssemblerCreationState creationState)

Method Detail

createAssemblersback to summary
protected DomainResultAssembler<?>[] createAssemblers(EmbeddableResultGraphNode resultDescriptor, AssemblerCreationState creationState, EmbeddableMappingType embeddableTypeDescriptor)
createCompositeInstanceback to summary
private Object createCompositeInstance(NavigablePath navigablePath, SessionFactoryImplementor sessionFactory)

Deprecated

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

determineParentInitializerback to summary
private Initializer determineParentInitializer(RowProcessingState processingState)
determineParentInstanceback to summary
private Object determineParentInstance(Initializer parentInitializer)
determinInitialStateback to summary
private AbstractEmbeddableInitializer.State determinInitialState()
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
getOwningEntityInitializerback to summary
private EntityInitializer getOwningEntityInitializer()
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
handleParentInjectionback to summary
private void handleParentInjection(RowProcessingState processingState)
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
isPartOfKeyback to summary
private static boolean isPartOfKey(EmbeddableValuedModelPart modelPart, NavigablePath navigablePath, FetchParentAccess fetchParentAccess)
prepareCompositeInstanceback to summary
private void prepareCompositeInstance(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 back to summary

pack-priv final Enum AbstractEmbeddableInitializer.State

extends Enum<AbstractEmbeddableInitializer.State>
Class Inheritance

Field Summary

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Field Detail

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

Constructor Detail

Stateback to summary
private State()

Method Detail

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