Top Description Fields Constructors Methods
org.hibernate.sql.results.graph.basic

public Class BasicFetch<T>

extends Object
implements Fetch, BasicResultGraphNode<T>
Class Inheritance
All Implemented Interfaces
org.hibernate.sql.results.graph.basic.BasicResultGraphNode, org.hibernate.sql.results.graph.DomainResult, org.hibernate.sql.results.graph.DomainResultGraphNode, org.hibernate.sql.results.graph.Fetch
Imports
org.hibernate.engine.FetchTiming, org.hibernate.metamodel.mapping.BasicValuedModelPart, org.hibernate.type.descriptor.converter.spi.BasicValueConverter, org.hibernate.spi.NavigablePath, org.hibernate.sql.results.graph.AssemblerCreationState, .UnfetchedBasicPartResultAssembler, .UnfetchedResultAssembler, .DomainResultAssembler, .DomainResultCreationState, .Fetch, .FetchParent, .FetchParentAccess, .Fetchable, org.hibernate.type.descriptor.java.JavaType

Fetch for a basic-value
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final DomainResultAssembler<T>
private final FetchParent
private final FetchTiming
private final BasicValuedModelPart

Constructor Summary

AccessConstructor and Description
public
BasicFetch(int valuesArrayPosition, FetchParent fetchParent, NavigablePath fetchablePath, BasicValuedModelPart valuedMapping, FetchTiming fetchTiming, DomainResultCreationState creationState)

public
BasicFetch(int valuesArrayPosition, FetchParent fetchParent, NavigablePath fetchablePath, BasicValuedModelPart valuedMapping, FetchTiming fetchTiming, DomainResultCreationState creationState, boolean coerceResultType)

public
BasicFetch(int valuesArrayPosition, FetchParent fetchParent, NavigablePath fetchablePath, BasicValuedModelPart valuedMapping, BasicValueConverter<T, ?> valueConverter, FetchTiming fetchTiming, DomainResultCreationState creationState)

public
BasicFetch(int valuesArrayPosition, FetchParent fetchParent, NavigablePath fetchablePath, BasicValuedModelPart valuedMapping, BasicValueConverter<T, ?> valueConverter, FetchTiming fetchTiming, boolean canBasicPartFetchBeDelayed, DomainResultCreationState creationState)

public
BasicFetch(int valuesArrayPosition, FetchParent fetchParent, NavigablePath fetchablePath, BasicValuedModelPart valuedMapping, BasicValueConverter<T, ?> valueConverter, FetchTiming fetchTiming, boolean canBasicPartFetchBeDelayed, DomainResultCreationState creationState, boolean coerceResultType)

Method Summary

Modifier and TypeMethod and Description
public DomainResultAssembler<J>
createAssembler(FetchParentAccess parentAccess, AssemblerCreationState creationState)

Implements org.hibernate.sql.results.graph.Fetch.createAssembler.

Create the assembler for this fetch
public DomainResultAssembler<T>
createResultAssembler(FetchParentAccess parentAccess, AssemblerCreationState creationState)

Implements org.hibernate.sql.results.graph.DomainResult.createResultAssembler.

Create an assembler (and any initializers) for this result.
public Fetchable
public FetchParent
getFetchParent()

Implements org.hibernate.sql.results.graph.Fetch.getFetchParent.

Obtain the owner of this fetch.
public NavigablePath
public JavaType<?>
public String
getResultVariable()

Implements org.hibernate.sql.results.graph.DomainResult.getResultVariable.

The result-variable (alias) associated with this result.
public FetchTiming
public boolean
hasTableGroup()

Implements org.hibernate.sql.results.graph.Fetch.hasTableGroup.

Is the TableGroup associated with this Fetch defined?
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

assemblerback to summary
private final DomainResultAssembler<T> assembler
fetchParentback to summary
private final FetchParent fetchParent
fetchTimingback to summary
private final FetchTiming fetchTiming
valuedMappingback to summary
private final BasicValuedModelPart valuedMapping

Constructor Detail

BasicFetchback to summary
public BasicFetch(int valuesArrayPosition, FetchParent fetchParent, NavigablePath fetchablePath, BasicValuedModelPart valuedMapping, FetchTiming fetchTiming, DomainResultCreationState creationState)
BasicFetchback to summary
public BasicFetch(int valuesArrayPosition, FetchParent fetchParent, NavigablePath fetchablePath, BasicValuedModelPart valuedMapping, FetchTiming fetchTiming, DomainResultCreationState creationState, boolean coerceResultType)
BasicFetchback to summary
public BasicFetch(int valuesArrayPosition, FetchParent fetchParent, NavigablePath fetchablePath, BasicValuedModelPart valuedMapping, BasicValueConverter<T, ?> valueConverter, FetchTiming fetchTiming, DomainResultCreationState creationState)
BasicFetchback to summary
public BasicFetch(int valuesArrayPosition, FetchParent fetchParent, NavigablePath fetchablePath, BasicValuedModelPart valuedMapping, BasicValueConverter<T, ?> valueConverter, FetchTiming fetchTiming, boolean canBasicPartFetchBeDelayed, DomainResultCreationState creationState)
BasicFetchback to summary
public BasicFetch(int valuesArrayPosition, FetchParent fetchParent, NavigablePath fetchablePath, BasicValuedModelPart valuedMapping, BasicValueConverter<T, ?> valueConverter, FetchTiming fetchTiming, boolean canBasicPartFetchBeDelayed, DomainResultCreationState creationState, boolean coerceResultType)

Method Detail

createAssemblerback to summary
public DomainResultAssembler<J> createAssembler(FetchParentAccess parentAccess, AssemblerCreationState creationState)

Implements org.hibernate.sql.results.graph.Fetch.createAssembler.

Doc from org.hibernate.sql.results.graph.Fetch.createAssembler.

Create the assembler for this fetch

Annotations
@Override
createResultAssemblerback to summary
public DomainResultAssembler<T> createResultAssembler(FetchParentAccess parentAccess, AssemblerCreationState creationState)

Implements org.hibernate.sql.results.graph.DomainResult.createResultAssembler.

Doc from org.hibernate.sql.results.graph.DomainResult.createResultAssembler.

Create an assembler (and any initializers) for this result.

Annotations
@Override
getFetchedMappingback to summary
public Fetchable getFetchedMapping()

Implements org.hibernate.sql.results.graph.Fetch.getFetchedMapping.

Doc from org.hibernate.sql.results.graph.Fetch.getFetchedMapping.

The value mapping being fetched

Annotations
@Override
getFetchParentback to summary
public FetchParent getFetchParent()

Implements org.hibernate.sql.results.graph.Fetch.getFetchParent.

Doc from org.hibernate.sql.results.graph.Fetch.getFetchParent.

Obtain 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. org.hibernate.annotations.Parent)

Annotations
@Override
getNavigablePathback to summary
public NavigablePath getNavigablePath()

Overrides default org.hibernate.sql.results.graph.DomainResultGraphNode.getNavigablePath.

Implements org.hibernate.sql.results.graph.Fetch.getNavigablePath.

Doc from org.hibernate.sql.results.graph.Fetch.getNavigablePath.

Get the property path to this fetch

Returns:NavigablePath

The property path

Annotations
@Override
getResultJavaTypeback to summary
public JavaType<?> getResultJavaType()

Implements org.hibernate.sql.results.graph.DomainResultGraphNode.getResultJavaType.

Annotations
@Override
getResultVariableback to summary
public String getResultVariable()

Implements org.hibernate.sql.results.graph.DomainResult.getResultVariable.

Doc from org.hibernate.sql.results.graph.DomainResult.getResultVariable.

The result-variable (alias) associated with this result.

Annotations
@Override
getTimingback to summary
public FetchTiming getTiming()

Implements org.hibernate.sql.results.graph.Fetch.getTiming.

Doc from org.hibernate.sql.results.graph.Fetch.getTiming.

immediate or delayed? todo (6.0) : should we also expose the fetch-style? Perhaps the fetch-options?

Annotations
@Override
hasTableGroupback to summary
public boolean hasTableGroup()

Implements org.hibernate.sql.results.graph.Fetch.hasTableGroup.

Doc from org.hibernate.sql.results.graph.Fetch.hasTableGroup.

Is the TableGroup associated with this Fetch defined?

Annotations
@Override