Package org.neo4j.cypherdsl.core
Class Case
- java.lang.Object
-
- org.neo4j.cypherdsl.core.Case
-
- All Implemented Interfaces:
Visitable
- Direct Known Subclasses:
Case.GenericCase
,Case.SimpleCase
@API(status=EXPERIMENTAL, since="1.0") public abstract class Case extends java.lang.Object implements Visitable
See CaseExpression.- Since:
- 1.0
- Author:
- Gerrit Meier, Michael J. Simons
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
Case.CaseElse
Represents a finalizing `else` expression.static interface
Case.CaseEnding
Specification for a renderable, complete CASE statementclass
Case.CaseWhenThen
Represents a pair of `when-then` expressions.static class
Case.GenericCase
Implementation of theCase
class to support generic case.class
Case.OngoingWhenThen
Helper class to collect `when` expressions and createCase.CaseWhenThen
instances when the `then` is provided.static class
Case.SimpleCase
Special implementation of theCase
class to support simple case with an initial expression / condition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(Visitor visitor)
Case.OngoingWhenThen
when(Expression nextExpression)
Creates a new case/when expression with an additionalWHEN
block.
-
-
-
Method Detail
-
when
public Case.OngoingWhenThen when(Expression nextExpression)
Creates a new case/when expression with an additionalWHEN
block.- Parameters:
nextExpression
- The next expression to use.- Returns:
- An ongoing when builder.
-
-