Class EntityValuedPathInterpretation<T>
- java.lang.Object
-
- org.hibernate.query.sqm.sql.internal.AbstractSqmPathInterpretation<T>
-
- org.hibernate.query.sqm.sql.internal.EntityValuedPathInterpretation<T>
-
- All Implemented Interfaces:
DomainResultProducer<T>
,SqmPathInterpretation<T>
,SqlSelectionProducer
,Expression
,SqlTupleContainer
,SqlAstNode
,Assignable
public class EntityValuedPathInterpretation<T> extends AbstractSqmPathInterpretation<T> implements SqlTupleContainer, Assignable
-
-
Constructor Summary
Constructors Constructor Description EntityValuedPathInterpretation(Expression sqlExpression, NavigablePath navigablePath, TableGroup tableGroup, EntityValuedModelPart mapping)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(SqlAstWalker sqlTreeWalker)
void
applySqlSelections(DomainResultCreationState creationState)
Used when this producer is a selection in a sub-query.static <T> EntityValuedPathInterpretation<T>
from(SqmEntityValuedSimplePath<T> sqmPath, MappingModelExpressible<?> inferredMapping, SqmToSqlAstConverter sqlAstCreationState)
static <T> EntityValuedPathInterpretation<T>
from(NavigablePath navigablePath, TableGroup tableGroup, ModelPart resultModelPart, EntityValuedModelPart mapping, EntityValuedModelPart treatedMapping, SqmToSqlAstConverter sqlAstCreationState)
List<ColumnReference>
getColumnReferences()
EntityValuedModelPart
getExpressionType()
The type for this expressionExpression
getSqlExpression()
SqlTuple
getSqlTuple()
void
visitColumnReferences(Consumer<ColumnReference> columnReferenceConsumer)
-
Methods inherited from class org.hibernate.query.sqm.sql.internal.AbstractSqmPathInterpretation
createDomainResult, getNavigablePath, getTableGroup
-
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.ast.tree.expression.Expression
createDomainResultSqlSelection, createSqlSelection, getColumnReference
-
-
-
-
Constructor Detail
-
EntityValuedPathInterpretation
public EntityValuedPathInterpretation(Expression sqlExpression, NavigablePath navigablePath, TableGroup tableGroup, EntityValuedModelPart mapping)
-
-
Method Detail
-
from
public static <T> EntityValuedPathInterpretation<T> from(SqmEntityValuedSimplePath<T> sqmPath, MappingModelExpressible<?> inferredMapping, SqmToSqlAstConverter sqlAstCreationState)
-
from
public static <T> EntityValuedPathInterpretation<T> from(NavigablePath navigablePath, TableGroup tableGroup, ModelPart resultModelPart, EntityValuedModelPart mapping, EntityValuedModelPart treatedMapping, SqmToSqlAstConverter sqlAstCreationState)
-
getSqlExpression
public Expression getSqlExpression()
- Specified by:
getSqlExpression
in interfaceSqmPathInterpretation<T>
-
accept
public void accept(SqlAstWalker sqlTreeWalker)
- Specified by:
accept
in interfaceSqlAstNode
-
getColumnReferences
public List<ColumnReference> getColumnReferences()
- Specified by:
getColumnReferences
in interfaceAssignable
-
visitColumnReferences
public void visitColumnReferences(Consumer<ColumnReference> columnReferenceConsumer)
- Specified by:
visitColumnReferences
in interfaceAssignable
-
getSqlTuple
public SqlTuple getSqlTuple()
- Specified by:
getSqlTuple
in interfaceSqlTupleContainer
-
applySqlSelections
public void applySqlSelections(DomainResultCreationState creationState)
Description copied from interface:DomainResultProducer
Used when this producer is a selection in a sub-query. The DomainResult is only needed for root query of a SELECT statement. This default impl assumes this producer is a true (Sql)Expression- Specified by:
applySqlSelections
in interfaceDomainResultProducer<T>
- Overrides:
applySqlSelections
in classAbstractSqmPathInterpretation<T>
-
getExpressionType
public EntityValuedModelPart getExpressionType()
Description copied from interface:Expression
The type for this expression- Specified by:
getExpressionType
in interfaceExpression
- Specified by:
getExpressionType
in interfaceSqmPathInterpretation<T>
- Overrides:
getExpressionType
in classAbstractSqmPathInterpretation<T>
-
-