Class AbstractNonJoinedEntityFetch
- java.lang.Object
-
- org.hibernate.sql.results.graph.entity.internal.AbstractNonJoinedEntityFetch
-
- All Implemented Interfaces:
DomainResultGraphNode,EntityFetch,EntityResultGraphNode,Fetch,FetchParent,InitializerProducer<AbstractNonJoinedEntityFetch>
- Direct Known Subclasses:
CircularFetchImpl,EntityDelayedFetchImpl,EntityFetchSelectImpl
public abstract class AbstractNonJoinedEntityFetch extends Object implements EntityFetch, InitializerProducer<AbstractNonJoinedEntityFetch>
-
-
Constructor Summary
Constructors Modifier Constructor Description AbstractNonJoinedEntityFetch(NavigablePath navigablePath, ToOneAttributeMapping fetchedModelPart, FetchParent fetchParent, DomainResult<?> keyResult, boolean selectDiscriminator, boolean selectByUniqueKey, DomainResultCreationState creationState)protectedAbstractNonJoinedEntityFetch(NavigablePath navigablePath, ToOneAttributeMapping fetchedModelPart, FetchParent fetchParent, DomainResult<?> keyResult, BasicFetch<?> discriminatorFetch, boolean selectByUniqueKey)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.sql.results.graph.entity.EntityFetch
asFetchParent, containsAnyNonScalarResults
-
Methods inherited from interface org.hibernate.sql.results.graph.entity.EntityResultGraphNode
appliesTo, getReferencedMappingContainer, getResultJavaType
-
Methods inherited from interface org.hibernate.sql.results.graph.FetchParent
generateFetchableFetch, getCollectionFetchesCount, getReferencedModePart, getRoot, resolveNavigablePath
-
-
-
-
Constructor Detail
-
AbstractNonJoinedEntityFetch
public AbstractNonJoinedEntityFetch(NavigablePath navigablePath, ToOneAttributeMapping fetchedModelPart, FetchParent fetchParent, DomainResult<?> keyResult, boolean selectDiscriminator, boolean selectByUniqueKey, DomainResultCreationState creationState)
-
AbstractNonJoinedEntityFetch
protected AbstractNonJoinedEntityFetch(NavigablePath navigablePath, ToOneAttributeMapping fetchedModelPart, FetchParent fetchParent, DomainResult<?> keyResult, BasicFetch<?> discriminatorFetch, boolean selectByUniqueKey)
-
-
Method Detail
-
getNavigablePath
public NavigablePath getNavigablePath()
Description copied from interface:DomainResultGraphNodeThe NavigablePath for this node (if one!). Certain nodes will not have a NavigablePath, namely those not associated with a Navigable- Specified by:
getNavigablePathin interfaceDomainResultGraphNode- Specified by:
getNavigablePathin interfaceEntityResultGraphNode- Specified by:
getNavigablePathin interfaceFetch- Specified by:
getNavigablePathin interfaceFetchParent- Returns:
- The property path
-
getFetchedMapping
public ToOneAttributeMapping getFetchedMapping()
Description copied from interface:FetchThe value mapping being fetched- Specified by:
getFetchedMappingin interfaceFetch
-
getEntityValuedModelPart
public ToOneAttributeMapping getEntityValuedModelPart()
- Specified by:
getEntityValuedModelPartin interfaceEntityResultGraphNode
-
getFetchParent
public FetchParent getFetchParent()
Description copied from interface:FetchObtain the owner of this fetch. Ultimately used to identify the thing that "owns" this fetched navigable for the purpose of:* identifying the associated owner reference as we process the fetch * inject the fetched instance into the parent and potentially inject the parent reference into the fetched instance if it defines such injection (e.g.
Parent)- Specified by:
getFetchParentin interfaceFetch
-
getFetches
public ImmutableFetchList getFetches()
Description copied from interface:FetchParentRetrieve the fetches owned by this fetch source.- Specified by:
getFetchesin interfaceFetchParent
-
findFetch
public Fetch findFetch(Fetchable fetchable)
- Specified by:
findFetchin interfaceFetchParent
-
hasJoinFetches
public boolean hasJoinFetches()
- Specified by:
hasJoinFetchesin interfaceFetchParent
-
containsCollectionFetches
public boolean containsCollectionFetches()
- Specified by:
containsCollectionFetchesin interfaceFetchParent
-
hasTableGroup
public boolean hasTableGroup()
Description copied from interface:FetchIs the TableGroup associated with this Fetch defined?- Specified by:
hasTableGroupin interfaceFetch
-
collectValueIndexesToCache
public void collectValueIndexesToCache(BitSet valueIndexes)
Description copied from interface:DomainResultGraphNodeCollect the JDBC value indexes used by this domain result that should be cached.- Specified by:
collectValueIndexesToCachein interfaceDomainResultGraphNode- Specified by:
collectValueIndexesToCachein interfaceEntityFetch- Specified by:
collectValueIndexesToCachein interfaceFetchParent
-
getReferencedMappingType
public EntityMappingType getReferencedMappingType()
Description copied from interface:FetchParentThis parent's mapping type- Specified by:
getReferencedMappingTypein interfaceFetchParent
-
getKeyResult
public DomainResult<?> getKeyResult()
-
getDiscriminatorFetch
public BasicFetch<?> getDiscriminatorFetch()
-
isSelectByUniqueKey
public boolean isSelectByUniqueKey()
-
createAssembler
public DomainResultAssembler<?> createAssembler(InitializerParent<?> parent, AssemblerCreationState creationState)
Description copied from interface:FetchCreate the assembler for this fetch- Specified by:
createAssemblerin interfaceFetch
-
createInitializer
public EntityInitializer<?> createInitializer(AbstractNonJoinedEntityFetch resultGraphNode, InitializerParent<?> parent, AssemblerCreationState creationState)
- Specified by:
createInitializerin interfaceInitializerProducer<AbstractNonJoinedEntityFetch>
-
createInitializer
public abstract EntityInitializer<?> createInitializer(InitializerParent<?> parent, AssemblerCreationState creationState)
- Specified by:
createInitializerin interfaceFetchParent
-
buildEntityAssembler
protected EntityAssembler buildEntityAssembler(EntityInitializer<?> entityInitializer)
-
-