Class CaseSearchedExpression
- java.lang.Object
-
- org.hibernate.sql.ast.tree.expression.CaseSearchedExpression
-
- All Implemented Interfaces:
org.hibernate.query.sqm.sql.internal.DomainResultProducer,SqlSelectionProducer,Expression,SqlAstNode
public class CaseSearchedExpression extends Object implements Expression, org.hibernate.query.sqm.sql.internal.DomainResultProducer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCaseSearchedExpression.WhenFragment
-
Constructor Summary
Constructors Constructor Description CaseSearchedExpression(MappingModelExpressible type)CaseSearchedExpression(MappingModelExpressible type, List<CaseSearchedExpression.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 expressionExpressiongetOtherwise()List<CaseSearchedExpression.WhenFragment>getWhenFragments()voidotherwise(Expression otherwiseExpression)voidwhen(Predicate predicate, 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
-
CaseSearchedExpression
public CaseSearchedExpression(MappingModelExpressible type)
-
CaseSearchedExpression
public CaseSearchedExpression(MappingModelExpressible type, List<CaseSearchedExpression.WhenFragment> whenFragments, Expression otherwise)
-
-
Method Detail
-
getWhenFragments
public List<CaseSearchedExpression.WhenFragment> getWhenFragments()
-
getOtherwise
public Expression getOtherwise()
-
when
public void when(Predicate predicate, Expression result)
-
otherwise
public void otherwise(Expression otherwiseExpression)
-
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
-
accept
public void accept(SqlAstWalker walker)
- Specified by:
acceptin interfaceSqlAstNode
-
getExpressionType
public MappingModelExpressible getExpressionType()
Description copied from interface:ExpressionThe type for this expression- Specified by:
getExpressionTypein interfaceExpression
-
-