Class CaseSimpleExpression
java.lang.Object
org.hibernate.sql.ast.tree.expression.CaseSimpleExpression
- All Implemented Interfaces:
DomainResultProducer,SqlSelectionProducer,Expression,SqlAstNode
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCaseSimpleExpression(MappingModelExpressible type, Expression fixture) CaseSimpleExpression(MappingModelExpressible type, Expression fixture, List<CaseSimpleExpression.WhenFragment> whenFragments, Expression otherwise) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(SqlAstWalker walker) voidapplySqlSelections(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 expressionvoidotherwise(Expression otherwiseExpression) voidwhen(Expression test, Expression result) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.sql.ast.tree.expression.Expression
createDomainResultSqlSelection, createSqlSelection, getColumnReference
-
Constructor Details
-
CaseSimpleExpression
-
CaseSimpleExpression
public CaseSimpleExpression(MappingModelExpressible type, Expression fixture, List<CaseSimpleExpression.WhenFragment> whenFragments, Expression otherwise)
-
-
Method Details
-
getFixture
-
getExpressionType
Description copied from interface:ExpressionThe type for this expression- Specified by:
getExpressionTypein interfaceExpression
-
accept
- Specified by:
acceptin interfaceSqlAstNode
-
createDomainResult
public DomainResult createDomainResult(String resultVariable, DomainResultCreationState creationState) Description copied from interface:DomainResultProducerProduce the domain query- Specified by:
createDomainResultin interfaceDomainResultProducer
-
applySqlSelections
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
-
getWhenFragments
-
getOtherwise
-
otherwise
-
when
-