Class CaseSimpleExpression
- java.lang.Object
-
- org.hibernate.sql.ast.tree.expression.CaseSimpleExpression
-
- All Implemented Interfaces:
org.hibernate.query.sqm.sql.internal.DomainResultProducer,SqlSelectionProducer,Expression,SqlAstNode
public class CaseSimpleExpression extends Object implements Expression, org.hibernate.query.sqm.sql.internal.DomainResultProducer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCaseSimpleExpression.WhenFragment
-
Constructor Summary
Constructors Constructor Description CaseSimpleExpression(MappingModelExpressible type, Expression fixture)CaseSimpleExpression(MappingModelExpressible type, Expression fixture, List<CaseSimpleExpression.WhenFragment> whenFragments, Expression otherwise)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(SqlAstWalker walker)voidapplySqlSelections(DomainResultCreationState creationState)DomainResultcreateDomainResult(String resultVariable, DomainResultCreationState creationState)MappingModelExpressiblegetExpressionType()The type for this expressionExpressiongetFixture()ExpressiongetOtherwise()List<CaseSimpleExpression.WhenFragment>getWhenFragments()voidotherwise(Expression otherwiseExpression)voidwhen(Expression test, Expression result)-
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
createSqlSelection, getColumnReference
-
-
-
-
Constructor Detail
-
CaseSimpleExpression
public CaseSimpleExpression(MappingModelExpressible type, Expression fixture)
-
CaseSimpleExpression
public CaseSimpleExpression(MappingModelExpressible type, Expression fixture, List<CaseSimpleExpression.WhenFragment> whenFragments, Expression otherwise)
-
-
Method Detail
-
getFixture
public Expression getFixture()
-
getExpressionType
public MappingModelExpressible getExpressionType()
Description copied from interface:ExpressionThe type for this expression- Specified by:
getExpressionTypein interfaceExpression
-
accept
public void accept(SqlAstWalker walker)
- Specified by:
acceptin interfaceSqlAstNode
-
createDomainResult
public DomainResult createDomainResult(String resultVariable, DomainResultCreationState creationState)
- Specified by:
createDomainResultin interfaceorg.hibernate.query.sqm.sql.internal.DomainResultProducer
-
applySqlSelections
public void applySqlSelections(DomainResultCreationState creationState)
- Specified by:
applySqlSelectionsin interfaceorg.hibernate.query.sqm.sql.internal.DomainResultProducer
-
getWhenFragments
public List<CaseSimpleExpression.WhenFragment> getWhenFragments()
-
getOtherwise
public Expression getOtherwise()
-
otherwise
public void otherwise(Expression otherwiseExpression)
-
when
public void when(Expression test, Expression result)
-
-