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 voidaccept(SqlAstWalker sqlTreeWalker)voidapplySqlSelections(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()EntityValuedModelPartgetExpressionType()The type for this expressionExpressiongetSqlExpression()SqlTuplegetSqlTuple()voidvisitColumnReferences(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:
getSqlExpressionin interfaceSqmPathInterpretation<T>
-
accept
public void accept(SqlAstWalker sqlTreeWalker)
- Specified by:
acceptin interfaceSqlAstNode
-
getColumnReferences
public List<ColumnReference> getColumnReferences()
- Specified by:
getColumnReferencesin interfaceAssignable
-
visitColumnReferences
public void visitColumnReferences(Consumer<ColumnReference> columnReferenceConsumer)
- Specified by:
visitColumnReferencesin interfaceAssignable
-
getSqlTuple
public SqlTuple getSqlTuple()
- Specified by:
getSqlTuplein interfaceSqlTupleContainer
-
applySqlSelections
public void applySqlSelections(DomainResultCreationState creationState)
Description copied from interface:DomainResultProducerUsed 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:
applySqlSelectionsin interfaceDomainResultProducer<T>- Overrides:
applySqlSelectionsin classAbstractSqmPathInterpretation<T>
-
getExpressionType
public EntityValuedModelPart getExpressionType()
Description copied from interface:ExpressionThe type for this expression- Specified by:
getExpressionTypein interfaceExpression- Specified by:
getExpressionTypein interfaceSqmPathInterpretation<T>- Overrides:
getExpressionTypein classAbstractSqmPathInterpretation<T>
-
-