- All Superinterfaces:
Expression,ProvidesAffixes,Visitable
- All Known Subinterfaces:
Case.CaseEnding,Case.GenericCase,Case.SimpleCase
See CaseExpression.
- Since:
- 1.0
- Author:
- Gerrit Meier, Michael J. Simons
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceSpecification for a renderable, complete CASE statementstatic interfaceExtension of theCaseinterface to support generic case.static interfaceHelper class to collect `when` expressions and createCaseWhenTheninstances when the `then` is provided.static interfaceExtension theCaseinterface to support simple case with an initial expression / condition. -
Method Summary
Modifier and TypeMethodDescriptionstatic Casecreate(@Nullable Expression expression) Creates a newCaseExpression@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, hasSize, in, includesAll, includesAny, isEmpty, isEqualTo, isFalse, isNotEqualTo, isNotNull, isNull, isTrue, lt, lte, matches, matches, multiply, ne, pow, property, remainder, size, sorted, startsWith, subtractMethods inherited from interface org.neo4j.cypherdsl.core.ast.ProvidesAffixes
getPrefix, getSuffix
-
Method Details
-
when
Creates a new case/when expression with an additionalWHENblock.- Parameters:
nextExpression- The next expression to use.- Returns:
- An ongoing when builder.
-
create
Creates a newCaseExpression- Parameters:
expression- starting expression for the simple case- Returns:
- The new expression
-