Package org.neo4j.cypherdsl.core
Interface Case
-
- All Superinterfaces:
Expression,ProvidesAffixes,Visitable
- All Known Subinterfaces:
Case.CaseEnding,Case.GenericCase,Case.SimpleCase
@API(status=EXPERIMENTAL, since="1.0") public interface Case extends Expression, ProvidesAffixesSee CaseExpression.- Since:
- 1.0
- Author:
- Gerrit Meier, Michael J. Simons
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceCase.CaseEndingSpecification for a renderable, complete CASE statementstatic interfaceCase.GenericCaseExtension of theCaseinterface to support generic case.static interfaceCase.OngoingWhenThenHelper class to collect `when` expressions and createCaseWhenTheninstances when the `then` is provided.static interfaceCase.SimpleCaseExtension theCaseinterface to support simple case with an initial expression / condition.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static Casecreate(@Nullable Expression expression)@NotNull Case.OngoingWhenThenwhen(Expression nextExpression)Creates a new case/when expression with an additionalWHENblock.-
Methods inherited from interface org.neo4j.cypherdsl.core.Expression
add, as, as, ascending, asCondition, concat, contains, descending, divide, endsWith, eq, gt, gte, in, isEmpty, isEqualTo, isFalse, isNotEqualTo, isNotNull, isNull, isTrue, lt, lte, matches, matches, multiply, ne, pow, property, remainder, startsWith, subtract
-
Methods inherited from interface org.neo4j.cypherdsl.core.ast.ProvidesAffixes
getPrefix, getSuffix
-
-
-
-
Method Detail
-
when
@NotNull @CheckReturnValue @NotNull Case.OngoingWhenThen when(Expression nextExpression)
Creates a new case/when expression with an additionalWHENblock.- Parameters:
nextExpression- The next expression to use.- Returns:
- An ongoing when builder.
-
create
static Case create(@Nullable @Nullable Expression expression)
-
-