Class EmbeddableValuedExpression<T>
java.lang.Object
org.hibernate.query.sqm.sql.internal.EmbeddableValuedExpression<T>
- All Implemented Interfaces:
DomainResultProducer<T>
,SqlSelectionProducer
,Expression
,SqlTupleContainer
,SqlAstNode
,Assignable
public class EmbeddableValuedExpression<T>
extends Object
implements Expression, DomainResultProducer<T>, Assignable, SqlTupleContainer
A computed expression that produces an embeddable valued model part.
It may only be composed of basic attribute mappings.
-
Constructor Summary
ConstructorsConstructorDescriptionEmbeddableValuedExpression
(NavigablePath baseNavigablePath, EmbeddableValuedModelPart mapping, SqlTuple sqlExpression) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(SqlAstWalker sqlTreeWalker) void
applySqlSelections
(DomainResultCreationState creationState) Used when this producer is a selection in a sub-query.createDomainResult
(String resultVariable, DomainResultCreationState creationState) Produce the domain queryThe type for this expressionvoid
visitColumnReferences
(Consumer<ColumnReference> columnReferenceConsumer) 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 Details
-
Method Details
-
getExpressionType
Description copied from interface:Expression
The type for this expression- Specified by:
getExpressionType
in interfaceExpression
-
createDomainResult
public DomainResult<T> createDomainResult(String resultVariable, DomainResultCreationState creationState) Description copied from interface:DomainResultProducer
Produce the domain query- Specified by:
createDomainResult
in interfaceDomainResultProducer<T>
-
applySqlSelections
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<T>
-
visitColumnReferences
- Specified by:
visitColumnReferences
in interfaceAssignable
-
getColumnReferences
- Specified by:
getColumnReferences
in interfaceAssignable
-
getSqlTuple
- Specified by:
getSqlTuple
in interfaceSqlTupleContainer
-
accept
- Specified by:
accept
in interfaceSqlAstNode
-