Class BasicFetch<T>
- java.lang.Object
-
- org.hibernate.sql.results.graph.basic.BasicFetch<T>
-
- All Implemented Interfaces:
BasicResultGraphNode<T>,DomainResult<T>,DomainResultGraphNode,Fetch
public class BasicFetch<T> extends Object implements Fetch, BasicResultGraphNode<T>
Fetch for a basic-value
-
-
Constructor Summary
Constructors Constructor Description BasicFetch(int valuesArrayPosition, FetchParent fetchParent, NavigablePath fetchablePath, BasicValuedModelPart valuedMapping, FetchTiming fetchTiming, DomainResultCreationState creationState)BasicFetch(int valuesArrayPosition, FetchParent fetchParent, NavigablePath fetchablePath, BasicValuedModelPart valuedMapping, FetchTiming fetchTiming, DomainResultCreationState creationState, boolean coerceResultType)BasicFetch(int valuesArrayPosition, FetchParent fetchParent, NavigablePath fetchablePath, BasicValuedModelPart valuedMapping, BasicValueConverter<T,?> valueConverter, FetchTiming fetchTiming, boolean canBasicPartFetchBeDelayed, DomainResultCreationState creationState)BasicFetch(int valuesArrayPosition, FetchParent fetchParent, NavigablePath fetchablePath, BasicValuedModelPart valuedMapping, BasicValueConverter<T,?> valueConverter, FetchTiming fetchTiming, boolean canBasicPartFetchBeDelayed, DomainResultCreationState creationState, boolean coerceResultType)BasicFetch(int valuesArrayPosition, FetchParent fetchParent, NavigablePath fetchablePath, BasicValuedModelPart valuedMapping, BasicValueConverter<T,?> valueConverter, FetchTiming fetchTiming, DomainResultCreationState creationState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DomainResultAssemblercreateAssembler(FetchParentAccess parentAccess, AssemblerCreationState creationState)Create the assembler for this fetchDomainResultAssembler<T>createResultAssembler(FetchParentAccess parentAccess, AssemblerCreationState creationState)Create an assembler (and any initializers) for this result.FetchablegetFetchedMapping()The value mapping being fetchedFetchParentgetFetchParent()Obtain the owner of this fetch.NavigablePathgetNavigablePath()Get the property path to this fetchJavaType<?>getResultJavaType()StringgetResultVariable()The result-variable (alias) associated with this result.FetchTiminggetTiming()immediate or delayed? todo (6.0) : should we also expose the fetch-style? Perhaps the fetch-options?booleanhasTableGroup()Is the TableGroup associated with this Fetch defined?-
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
-
-
-
-
Constructor Detail
-
BasicFetch
public BasicFetch(int valuesArrayPosition, FetchParent fetchParent, NavigablePath fetchablePath, BasicValuedModelPart valuedMapping, FetchTiming fetchTiming, DomainResultCreationState creationState)
-
BasicFetch
public BasicFetch(int valuesArrayPosition, FetchParent fetchParent, NavigablePath fetchablePath, BasicValuedModelPart valuedMapping, FetchTiming fetchTiming, DomainResultCreationState creationState, boolean coerceResultType)
-
BasicFetch
public BasicFetch(int valuesArrayPosition, FetchParent fetchParent, NavigablePath fetchablePath, BasicValuedModelPart valuedMapping, BasicValueConverter<T,?> valueConverter, FetchTiming fetchTiming, DomainResultCreationState creationState)
-
BasicFetch
public BasicFetch(int valuesArrayPosition, FetchParent fetchParent, NavigablePath fetchablePath, BasicValuedModelPart valuedMapping, BasicValueConverter<T,?> valueConverter, FetchTiming fetchTiming, boolean canBasicPartFetchBeDelayed, DomainResultCreationState creationState)
-
BasicFetch
public BasicFetch(int valuesArrayPosition, FetchParent fetchParent, NavigablePath fetchablePath, BasicValuedModelPart valuedMapping, BasicValueConverter<T,?> valueConverter, FetchTiming fetchTiming, boolean canBasicPartFetchBeDelayed, DomainResultCreationState creationState, boolean coerceResultType)
-
-
Method Detail
-
getTiming
public FetchTiming getTiming()
Description copied from interface:Fetchimmediate or delayed? todo (6.0) : should we also expose the fetch-style? Perhaps the fetch-options?
-
hasTableGroup
public boolean hasTableGroup()
Description copied from interface:FetchIs the TableGroup associated with this Fetch defined?- Specified by:
hasTableGroupin interfaceFetch
-
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
-
getFetchedMapping
public Fetchable getFetchedMapping()
Description copied from interface:FetchThe value mapping being fetched- Specified by:
getFetchedMappingin interfaceFetch
-
getResultJavaType
public JavaType<?> getResultJavaType()
- Specified by:
getResultJavaTypein interfaceDomainResultGraphNode
-
getNavigablePath
public NavigablePath getNavigablePath()
Description copied from interface:FetchGet the property path to this fetch- Specified by:
getNavigablePathin interfaceDomainResultGraphNode- Specified by:
getNavigablePathin interfaceFetch- Returns:
- The property path
-
createAssembler
public DomainResultAssembler createAssembler(FetchParentAccess parentAccess, AssemblerCreationState creationState)
Description copied from interface:FetchCreate the assembler for this fetch- Specified by:
createAssemblerin interfaceFetch
-
createResultAssembler
public DomainResultAssembler<T> createResultAssembler(FetchParentAccess parentAccess, AssemblerCreationState creationState)
Description copied from interface:DomainResultCreate an assembler (and any initializers) for this result.- Specified by:
createResultAssemblerin interfaceDomainResult<T>
-
getResultVariable
public String getResultVariable()
Description copied from interface:DomainResultThe result-variable (alias) associated with this result.- Specified by:
getResultVariablein interfaceDomainResult<T>
-
-