Class AsWrappedExpression<B>
- java.lang.Object
-
- org.hibernate.query.sqm.sql.internal.AsWrappedExpression<B>
-
- All Implemented Interfaces:
DomainResultProducer<B>
,SqlSelectionProducer
,Expression
,SqlAstNode
public class AsWrappedExpression<B> extends Object implements Expression, DomainResultProducer<B>
-
-
Constructor Summary
Constructors Constructor Description AsWrappedExpression(Expression wrappedExpression, BasicType<B> expressionType)
-
Method Summary
All 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.DomainResult<B>
createDomainResult(String resultVariable, DomainResultCreationState creationState)
Produce the domain querySqlSelection
createDomainResultSqlSelection(int jdbcPosition, int valuesArrayPosition, JavaType javaType, boolean virtual, TypeConfiguration typeConfiguration)
SqlSelection
createSqlSelection(int jdbcPosition, int valuesArrayPosition, JavaType javaType, boolean virtual, TypeConfiguration typeConfiguration)
Create a SqlSelection for the given JDBC ResultSet positionColumnReference
getColumnReference()
JdbcMappingContainer
getExpressionType()
The type for this expression
-
-
-
Constructor Detail
-
AsWrappedExpression
public AsWrappedExpression(Expression wrappedExpression, BasicType<B> expressionType)
-
-
Method Detail
-
getExpressionType
public JdbcMappingContainer getExpressionType()
Description copied from interface:Expression
The type for this expression- Specified by:
getExpressionType
in interfaceExpression
-
getColumnReference
public ColumnReference getColumnReference()
- Specified by:
getColumnReference
in interfaceExpression
-
createSqlSelection
public SqlSelection createSqlSelection(int jdbcPosition, int valuesArrayPosition, JavaType javaType, boolean virtual, 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 asvirtual
- Whether the select is virtual or real. SeeSqlSelection.isVirtual()
typeConfiguration
- The associated TypeConfiguration
-
createDomainResultSqlSelection
public SqlSelection createDomainResultSqlSelection(int jdbcPosition, int valuesArrayPosition, JavaType javaType, boolean virtual, TypeConfiguration typeConfiguration)
- Specified by:
createDomainResultSqlSelection
in interfaceExpression
-
accept
public void accept(SqlAstWalker sqlTreeWalker)
- Specified by:
accept
in interfaceSqlAstNode
-
createDomainResult
public DomainResult<B> createDomainResult(String resultVariable, DomainResultCreationState creationState)
Description copied from interface:DomainResultProducer
Produce the domain query- Specified by:
createDomainResult
in interfaceDomainResultProducer<B>
-
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<B>
-
-