Interface Case.WhenClause

  • All Known Subinterfaces:
    Case.CaseClause
    Enclosing class:
    Case

    public static interface Case.WhenClause
    • Method Detail

      • when

        Case.ThenClause when​(Expression conditionOrExpression)
        WHEN clause, to be followed by its THEN clause. If the CASE is a "search case", the given Expression must be a condition. Otherwise, in a "simple case", the given Expression is matched against the initial case Expression for equality. If the condition holds true, the CASE will return the expression given by the following THEN clause. Otherwise next WHEN clause is evaluated, if none left the ELSE clause is used, if none the CASE returns NULL.
        See Also:
        Case.caseSearch(), Case.caseSimple(Expression)