Class EagerCollectionFetch
- java.lang.Object
-
- org.hibernate.sql.results.graph.collection.internal.CollectionFetch
-
- org.hibernate.sql.results.graph.collection.internal.EagerCollectionFetch
-
- All Implemented Interfaces:
DomainResultGraphNode
,Fetch
,FetchParent
,InitializerProducer<CollectionFetch>
public class EagerCollectionFetch extends CollectionFetch
-
-
Constructor Summary
Constructors Constructor Description EagerCollectionFetch(NavigablePath fetchedPath, PluralAttributeMapping fetchedAttribute, TableGroup collectionTableGroup, boolean needsCollectionKeyResult, FetchParent fetchParent, DomainResultCreationState creationState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FetchParent
asFetchParent()
Utility method to avoidinstanceof
checks.void
collectValueIndexesToCache(BitSet valueIndexes)
Collect the JDBC value indexes used by this domain result that should be cached.boolean
containsCollectionFetches()
CollectionInitializer<?>
createInitializer(InitializerParent<?> parent, AssemblerCreationState creationState)
Fetch
findFetch(Fetchable fetchable)
int
getCollectionFetchesCount()
ImmutableFetchList
getFetches()
Retrieve the fetches owned by this fetch source.JavaType<?>
getResultJavaType()
FetchTiming
getTiming()
immediate or delayed? todo (6.0) : should we also expose the fetch-style? Perhaps the fetch-options?boolean
hasJoinFetches()
boolean
hasTableGroup()
Is the TableGroup associated with this Fetch defined?NavigablePath
resolveNavigablePath(Fetchable fetchable)
-
Methods inherited from class org.hibernate.sql.results.graph.collection.internal.CollectionFetch
createAssembler, createInitializer, getFetchedMapping, getFetchParent, getNavigablePath, getReferencedMappingContainer, getReferencedMappingType
-
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.DomainResultGraphNode
appliesTo
-
Methods inherited from interface org.hibernate.sql.results.graph.Fetch
containsAnyNonScalarResults
-
Methods inherited from interface org.hibernate.sql.results.graph.FetchParent
generateFetchableFetch, getReferencedModePart, getRoot
-
-
-
-
Constructor Detail
-
EagerCollectionFetch
public EagerCollectionFetch(NavigablePath fetchedPath, PluralAttributeMapping fetchedAttribute, TableGroup collectionTableGroup, boolean needsCollectionKeyResult, FetchParent fetchParent, DomainResultCreationState creationState)
-
-
Method Detail
-
resolveNavigablePath
public NavigablePath resolveNavigablePath(Fetchable fetchable)
-
createInitializer
public CollectionInitializer<?> createInitializer(InitializerParent<?> parent, AssemblerCreationState creationState)
-
getTiming
public FetchTiming getTiming()
Description copied from interface:Fetch
immediate or delayed? todo (6.0) : should we also expose the fetch-style? Perhaps the fetch-options?
-
hasTableGroup
public boolean hasTableGroup()
Description copied from interface:Fetch
Is the TableGroup associated with this Fetch defined?
-
getFetches
public ImmutableFetchList getFetches()
Description copied from interface:FetchParent
Retrieve the fetches owned by this fetch source.- Specified by:
getFetches
in interfaceFetchParent
- Overrides:
getFetches
in classCollectionFetch
-
findFetch
public Fetch findFetch(Fetchable fetchable)
- Specified by:
findFetch
in interfaceFetchParent
- Overrides:
findFetch
in classCollectionFetch
-
hasJoinFetches
public boolean hasJoinFetches()
- Specified by:
hasJoinFetches
in interfaceFetchParent
- Overrides:
hasJoinFetches
in classCollectionFetch
-
containsCollectionFetches
public boolean containsCollectionFetches()
- Specified by:
containsCollectionFetches
in interfaceFetchParent
- Overrides:
containsCollectionFetches
in classCollectionFetch
-
getCollectionFetchesCount
public int getCollectionFetchesCount()
-
getResultJavaType
public JavaType<?> getResultJavaType()
-
asFetchParent
public FetchParent asFetchParent()
Description copied from interface:Fetch
Utility method to avoidinstanceof
checks. Returns this if it's an instance ofFetchParent
, null otherwise.
-
collectValueIndexesToCache
public void collectValueIndexesToCache(BitSet valueIndexes)
Description copied from interface:DomainResultGraphNode
Collect the JDBC value indexes used by this domain result that should be cached.
-
-