Class DiscriminatorPathInterpretation<T>
- java.lang.Object
-
- org.hibernate.query.sqm.sql.internal.AbstractSqmPathInterpretation<T>
-
- org.hibernate.query.sqm.sql.internal.DiscriminatorPathInterpretation<T>
-
- All Implemented Interfaces:
DomainResultProducer<T>
,SqmPathInterpretation<T>
,SqlSelectionProducer
,Expression
,SqlAstNode
public class DiscriminatorPathInterpretation<T> extends AbstractSqmPathInterpretation<T>
SqmPathInterpretation and DomainResultProducer implementation for entity discriminator
-
-
Constructor Summary
Constructors Constructor Description DiscriminatorPathInterpretation(NavigablePath navigablePath, DiscriminatorMapping mapping, TableGroup tableGroup, SqlAstCreationState sqlAstCreationState)
DiscriminatorPathInterpretation(NavigablePath navigablePath, EntityMappingType mapping, TableGroup tableGroup, SqlAstCreationState sqlAstCreationState)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(SqlAstWalker sqlTreeWalker)
DomainResult<T>
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 positionstatic SqmPathInterpretation<?>
from(EntityDiscriminatorSqmPath path, SqmToSqlAstConverter converter)
EntityDiscriminatorMapping
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.sql.ast.tree.expression.Expression
createDomainResultSqlSelection, createDomainResultSqlSelection, createSqlSelection, getColumnReference
-
Methods inherited from interface org.hibernate.query.sqm.sql.internal.SqmPathInterpretation
getSqlExpression
-
-
-
-
Constructor Detail
-
DiscriminatorPathInterpretation
public DiscriminatorPathInterpretation(NavigablePath navigablePath, DiscriminatorMapping mapping, TableGroup tableGroup, SqlAstCreationState sqlAstCreationState)
-
DiscriminatorPathInterpretation
public DiscriminatorPathInterpretation(NavigablePath navigablePath, EntityMappingType mapping, TableGroup tableGroup, SqlAstCreationState sqlAstCreationState)
-
-
Method Detail
-
from
public static SqmPathInterpretation<?> from(EntityDiscriminatorSqmPath path, SqmToSqlAstConverter converter)
-
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<T>
- Overrides:
getExpressionType
in classAbstractSqmPathInterpretation<T>
-
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- 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<T> createDomainResult(String resultVariable, DomainResultCreationState creationState)
Description copied from interface:DomainResultProducer
Produce the domain query- Specified by:
createDomainResult
in interfaceDomainResultProducer<T>
- Overrides:
createDomainResult
in classAbstractSqmPathInterpretation<T>
-
accept
public void accept(SqlAstWalker sqlTreeWalker)
-
-