Class ExpressionDomainResultProducer
- java.lang.Object
-
- org.hibernate.query.sqm.mutation.internal.ExpressionDomainResultProducer
-
- All Implemented Interfaces:
DomainResultProducer<Object>
,SqlSelectionProducer
,Expression
,SqlAstNode
public class ExpressionDomainResultProducer extends Object implements DomainResultProducer<Object>, Expression
A wrapper around a basicExpression
that produces aBasicResult
as domain result.
-
-
Constructor Summary
Constructors Constructor Description ExpressionDomainResultProducer(Expression expression)
-
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<Object>
createDomainResult(String resultVariable, DomainResultCreationState creationState)
Produce the domain queryJdbcMappingContainer
getExpressionType()
The type for this expression-
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
-
-
-
-
Constructor Detail
-
ExpressionDomainResultProducer
public ExpressionDomainResultProducer(Expression expression)
-
-
Method Detail
-
createDomainResult
public DomainResult<Object> createDomainResult(String resultVariable, DomainResultCreationState creationState)
Description copied from interface:DomainResultProducer
Produce the domain query- Specified by:
createDomainResult
in interfaceDomainResultProducer<Object>
-
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<Object>
-
accept
public void accept(SqlAstWalker sqlTreeWalker)
- Specified by:
accept
in interfaceSqlAstNode
-
getExpressionType
public JdbcMappingContainer getExpressionType()
Description copied from interface:Expression
The type for this expression- Specified by:
getExpressionType
in interfaceExpression
-
-