Class EntityJoinedFetchInitializer
- java.lang.Object
-
- org.hibernate.sql.results.graph.AbstractFetchParentAccess
-
- org.hibernate.sql.results.graph.entity.AbstractEntityInitializer
-
- org.hibernate.sql.results.graph.entity.internal.EntityJoinedFetchInitializer
-
- All Implemented Interfaces:
EntityInitializer
,FetchParentAccess
,Initializer
public class EntityJoinedFetchInitializer extends AbstractEntityInitializer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hibernate.sql.results.graph.entity.AbstractEntityInitializer
AbstractEntityInitializer.State
-
-
Field Summary
-
Fields inherited from class org.hibernate.sql.results.graph.entity.AbstractEntityInitializer
entityInstanceForNotify, state
-
-
Constructor Summary
Constructors Constructor Description EntityJoinedFetchInitializer(EntityResultGraphNode resultDescriptor, EntityValuedFetchable referencedFetchable, NavigablePath navigablePath, LockMode lockMode, NotFoundAction notFoundAction, DomainResult<?> keyResult, DomainResult<Object> rowIdResult, Fetch identifierFetch, Fetch discriminatorFetch, FetchParentAccess parentAccess, AssemblerCreationState creationState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getSimpleConcreteImplName()
Simple class name of this initializer for loggingvoid
initializeInstanceFromParent(Object parentInstance, RowProcessingState rowProcessingState)
Step 3.1 - Initialize the state of the instance as extracted from the given parentInstance.boolean
isResultInitializer()
void
resolveKey(RowProcessingState rowProcessingState)
Step 1 - Resolve the key value for this initializer for the current row.String
toString()
-
Methods inherited from class org.hibernate.sql.results.graph.entity.AbstractEntityInitializer
consistentInstance, endLoading, extractConcreteTypeStateValues, finishUpRow, getAssemblers, getConcreteDescriptor, getEntityDescriptor, getEntityFromExecutionContext, getEntityInstance, getEntityInstanceForNotify, getEntityKey, getFetchParentAccess, getIdentifierAssembler, getInitializedPart, getKeyValue, getLockMode, getNavigablePath, getOwnedModelPartDeclaringType, getOwningParent, getParentKey, getResolvedEntityState, getRowIdAssembler, getVersionAssembler, initializeInstance, initializeSubInstancesFromParent, instantiateEntity, isEntityInitialized, isPartOfKey, markShallowCached, preLoad, registerLoadingEntity, registerNaturalIdResolution, registerPossibleUniqueKeyEntries, registerReloadedEntity, registerReloadedEntity, registerResolutionListener, resolveEntityInstance, resolveEntityInstance, resolveInstance, resolveInstance, setEntityInstance, setEntityInstanceForNotify, setResolvedEntityState, skipInitialization, startLoading, takeSnapshot, updateCaches
-
Methods inherited from class org.hibernate.sql.results.graph.AbstractFetchParentAccess
clearResolutionListeners, isParentShallowCached, notifyResolutionListeners
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.sql.results.graph.entity.EntityInitializer
asEntityInitializer, findFirstEntityDescriptorAccess, findFirstEntityInitializer, getInitializedInstance, isEntityInitializer
-
Methods inherited from interface org.hibernate.sql.results.graph.FetchParentAccess
shouldSkipInitializer
-
Methods inherited from interface org.hibernate.sql.results.graph.Initializer
asCollectionInitializer, asEmbeddableInitializer, isCollectionInitializer, isEmbeddableInitializer
-
-
-
-
Constructor Detail
-
EntityJoinedFetchInitializer
public EntityJoinedFetchInitializer(EntityResultGraphNode resultDescriptor, EntityValuedFetchable referencedFetchable, NavigablePath navigablePath, LockMode lockMode, NotFoundAction notFoundAction, DomainResult<?> keyResult, DomainResult<Object> rowIdResult, Fetch identifierFetch, Fetch discriminatorFetch, FetchParentAccess parentAccess, AssemblerCreationState creationState)
-
-
Method Detail
-
resolveKey
public void resolveKey(RowProcessingState rowProcessingState)
Description copied from interface:Initializer
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- Specified by:
resolveKey
in interfaceInitializer
- Overrides:
resolveKey
in classAbstractEntityInitializer
-
initializeInstanceFromParent
public void initializeInstanceFromParent(Object parentInstance, RowProcessingState rowProcessingState)
Description copied from interface:Initializer
Step 3.1 - Initialize the state of the instance as extracted from the given parentInstance. Extraction can be done with theInitializer.getInitializedPart()
. Initializers are supposed to recursively call this method for sub-initializers. This alternative initialization protocol is used for shallow query cache hits, in which case there is no data available in theJdbcValuesCacheHit
to initialize potentially lazy associations.
-
getSimpleConcreteImplName
protected String getSimpleConcreteImplName()
Description copied from class:AbstractEntityInitializer
Simple class name of this initializer for logging- Specified by:
getSimpleConcreteImplName
in classAbstractEntityInitializer
-
isResultInitializer
public boolean isResultInitializer()
-
-