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 voidaccept(SqlAstWalker sqlTreeWalker)voidapplySqlSelections(DomainResultCreationState creationState)Used when this producer is a selection in a sub-query.DomainResult<B>createDomainResult(String resultVariable, DomainResultCreationState creationState)Produce the domain querySqlSelectioncreateDomainResultSqlSelection(int jdbcPosition, int valuesArrayPosition, JavaType javaType, boolean virtual, TypeConfiguration typeConfiguration)SqlSelectioncreateSqlSelection(int jdbcPosition, int valuesArrayPosition, JavaType javaType, boolean virtual, TypeConfiguration typeConfiguration)Create a SqlSelection for the given JDBC ResultSet positionColumnReferencegetColumnReference()JdbcMappingContainergetExpressionType()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:ExpressionThe type for this expression- Specified by:
getExpressionTypein interfaceExpression
-
getColumnReference
public ColumnReference getColumnReference()
- Specified by:
getColumnReferencein interfaceExpression
-
createSqlSelection
public SqlSelection createSqlSelection(int jdbcPosition, int valuesArrayPosition, JavaType javaType, boolean virtual, TypeConfiguration typeConfiguration)
Description copied from interface:SqlSelectionProducerCreate a SqlSelection for the given JDBC ResultSet position- Specified by:
createSqlSelectionin interfaceExpression- Specified by:
createSqlSelectionin 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:
createDomainResultSqlSelectionin interfaceExpression
-
accept
public void accept(SqlAstWalker sqlTreeWalker)
- Specified by:
acceptin interfaceSqlAstNode
-
createDomainResult
public DomainResult<B> createDomainResult(String resultVariable, DomainResultCreationState creationState)
Description copied from interface:DomainResultProducerProduce the domain query- Specified by:
createDomainResultin interfaceDomainResultProducer<B>
-
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<B>
-
-