Class AbstractSqmPathInterpretation<T>
- java.lang.Object
-
- org.hibernate.query.sqm.sql.internal.AbstractSqmPathInterpretation<T>
-
- All Implemented Interfaces:
DomainResultProducer<T>
,SqmPathInterpretation<T>
,SqlSelectionProducer
,Expression
,SqlAstNode
- Direct Known Subclasses:
AnyDiscriminatorPathInterpretation
,BasicValuedPathInterpretation
,DiscriminatedAssociationPathInterpretation
,DiscriminatorPathInterpretation
,EmbeddableValuedPathInterpretation
,EntityValuedPathInterpretation
,NonAggregatedCompositeValuedPathInterpretation
,PluralValuedSimplePathInterpretation
public abstract class AbstractSqmPathInterpretation<T> extends Object implements SqmPathInterpretation<T>
-
-
Constructor Summary
Constructors Constructor Description AbstractSqmPathInterpretation(NavigablePath navigablePath, ModelPart mapping, TableGroup tableGroup)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applySqlSelections(DomainResultCreationState creationState)
Used when this producer is a selection in a sub-query.DomainResult<T>
createDomainResult(String resultVariable, DomainResultCreationState creationState)
Produce the domain queryModelPart
getExpressionType()
The type for this expressionNavigablePath
getNavigablePath()
TableGroup
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
-
Methods inherited from interface org.hibernate.sql.ast.tree.SqlAstNode
accept
-
Methods inherited from interface org.hibernate.query.sqm.sql.internal.SqmPathInterpretation
getSqlExpression
-
-
-
-
Constructor Detail
-
AbstractSqmPathInterpretation
public AbstractSqmPathInterpretation(NavigablePath navigablePath, ModelPart mapping, TableGroup tableGroup)
-
-
Method Detail
-
getNavigablePath
public NavigablePath getNavigablePath()
- Specified by:
getNavigablePath
in interfaceSqmPathInterpretation<T>
-
getExpressionType
public ModelPart getExpressionType()
Description copied from interface:Expression
The type for this expression- Specified by:
getExpressionType
in interfaceExpression
- Specified by:
getExpressionType
in interfaceSqmPathInterpretation<T>
-
getTableGroup
public TableGroup getTableGroup()
-
createDomainResult
public DomainResult<T> createDomainResult(String resultVariable, DomainResultCreationState creationState)
Description copied from interface:DomainResultProducer
Produce the domain query- Specified by:
createDomainResult
in interfaceDomainResultProducer<T>
-
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>
-
-