Class DiscriminatorPathInterpretation
- java.lang.Object
-
- org.hibernate.query.sqm.sql.internal.AbstractSqmPathInterpretation
-
- org.hibernate.query.sqm.sql.internal.DiscriminatorPathInterpretation
-
- All Implemented Interfaces:
DomainResultProducer
,SqmPathInterpretation
,SqlSelectionProducer
,Expression
,SqlAstNode
public class DiscriminatorPathInterpretation extends AbstractSqmPathInterpretation implements DomainResultProducer
SqmPathInterpretation and DomainResultProducer implementation for entity discriminator
-
-
Constructor Summary
Constructors Constructor Description DiscriminatorPathInterpretation(NavigablePath navigablePath, EntityMappingType mapping, TableGroup tableGroup, SqlAstCreationState sqlAstCreationState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(SqlAstWalker sqlTreeWalker)
DomainResult<Class<?>>
createDomainResult(String resultVariable, DomainResultCreationState creationState)
Produce the domain querySqlSelection
createSqlSelection(int jdbcPosition, int valuesArrayPosition, JavaType javaType, TypeConfiguration typeConfiguration)
Create a SqlSelection for the given JDBC ResultSet positionEntityDiscriminatorMapping
getDiscriminatorMapping()
EntityDiscriminatorMapping
getExpressionType()
The type for this expression-
Methods inherited from class org.hibernate.query.sqm.sql.internal.AbstractSqmPathInterpretation
applySqlSelections, 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.query.sqm.sql.internal.DomainResultProducer
applySqlSelections
-
Methods inherited from interface org.hibernate.sql.ast.tree.expression.Expression
getColumnReference
-
Methods inherited from interface org.hibernate.query.sqm.sql.internal.SqmPathInterpretation
getSqlExpression
-
-
-
-
Constructor Detail
-
DiscriminatorPathInterpretation
public DiscriminatorPathInterpretation(NavigablePath navigablePath, EntityMappingType mapping, TableGroup tableGroup, SqlAstCreationState sqlAstCreationState)
-
-
Method Detail
-
getDiscriminatorMapping
public EntityDiscriminatorMapping getDiscriminatorMapping()
-
getExpressionType
public EntityDiscriminatorMapping getExpressionType()
Description copied from interface:Expression
The type for this expression- Specified by:
getExpressionType
in interfaceExpression
- Specified by:
getExpressionType
in interfaceSqmPathInterpretation
- Overrides:
getExpressionType
in classAbstractSqmPathInterpretation
-
createSqlSelection
public SqlSelection createSqlSelection(int jdbcPosition, int valuesArrayPosition, JavaType javaType, TypeConfiguration typeConfiguration)
Description copied from interface:SqlSelectionProducer
Create a SqlSelection for the given JDBC ResultSet position- Specified by:
createSqlSelection
in interfaceExpression
- Specified by:
createSqlSelection
in interfaceSqlSelectionProducer
- Parameters:
jdbcPosition
- The index position used to read values from JDBCvaluesArrayPosition
- The position in our "current JDBC values array"javaType
- The descriptor for the Java type to read the value astypeConfiguration
- The associated TypeConfiguration
-
createDomainResult
public DomainResult<Class<?>> createDomainResult(String resultVariable, DomainResultCreationState creationState)
Description copied from interface:DomainResultProducer
Produce the domain query- Specified by:
createDomainResult
in interfaceDomainResultProducer
- Overrides:
createDomainResult
in classAbstractSqmPathInterpretation
-
accept
public void accept(SqlAstWalker sqlTreeWalker)
- Specified by:
accept
in interfaceSqlAstNode
-
-