Class BasicResult<T>
- java.lang.Object
-
- org.hibernate.sql.results.graph.basic.BasicResult<T>
-
- All Implemented Interfaces:
BasicResultGraphNode<T>
,DomainResult<T>
,DomainResultGraphNode
public class BasicResult<T> extends Object implements DomainResult<T>, BasicResultGraphNode<T>
DomainResult for a basic-value
-
-
Constructor Summary
Constructors Constructor Description BasicResult(int jdbcValuesArrayPosition, String resultVariable, JdbcMapping jdbcMapping)
BasicResult(int jdbcValuesArrayPosition, String resultVariable, JdbcMapping jdbcMapping, NavigablePath navigablePath, boolean coerceResultType, boolean unwrapRowProcessingState)
BasicResult(int valuesArrayPosition, String resultVariable, JavaType<T> javaType, BasicValueConverter<T,?> valueConverter, NavigablePath navigablePath, boolean coerceResultType, boolean unwrapRowProcessingState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
collectValueIndexesToCache(BitSet valueIndexes)
Collect the JDBC value indexes used by this domain result that should be cached.DomainResultAssembler<T>
createResultAssembler(InitializerParent<?> parent, AssemblerCreationState creationState)
Create an assembler (and any initializers) for this result.DomainResultAssembler<T>
getAssembler()
For testing purposes onlyNavigablePath
getNavigablePath()
The NavigablePath for this node (if one!).JavaType<T>
getResultJavaType()
String
getResultVariable()
The result-variable (alias) associated with this result.-
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, containsAnyNonScalarResults
-
-
-
-
Constructor Detail
-
BasicResult
public BasicResult(int jdbcValuesArrayPosition, String resultVariable, JdbcMapping jdbcMapping)
-
BasicResult
public BasicResult(int jdbcValuesArrayPosition, String resultVariable, JdbcMapping jdbcMapping, NavigablePath navigablePath, boolean coerceResultType, boolean unwrapRowProcessingState)
-
BasicResult
public BasicResult(int valuesArrayPosition, String resultVariable, JavaType<T> javaType, BasicValueConverter<T,?> valueConverter, NavigablePath navigablePath, boolean coerceResultType, boolean unwrapRowProcessingState)
-
-
Method Detail
-
getResultVariable
public String getResultVariable()
Description copied from interface:DomainResult
The result-variable (alias) associated with this result.- Specified by:
getResultVariable
in interfaceDomainResult<T>
-
getResultJavaType
public JavaType<T> getResultJavaType()
- Specified by:
getResultJavaType
in interfaceDomainResultGraphNode
-
getNavigablePath
public NavigablePath getNavigablePath()
Description copied from interface:DomainResultGraphNode
The NavigablePath for this node (if one!). Certain nodes will not have a NavigablePath, namely those not associated with a Navigable- Specified by:
getNavigablePath
in interfaceDomainResultGraphNode
-
getAssembler
@Internal public DomainResultAssembler<T> getAssembler()
For testing purposes only
-
createResultAssembler
public DomainResultAssembler<T> createResultAssembler(InitializerParent<?> parent, AssemblerCreationState creationState)
Description copied from interface:DomainResult
Create an assembler (and any initializers) for this result.- Specified by:
createResultAssembler
in interfaceDomainResult<T>
-
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.- Specified by:
collectValueIndexesToCache
in interfaceDomainResultGraphNode
-
-