/** * Begins a CASE statement with a base expression. Note: to use SQLite NULL literal as the base expression, * use {@link Field#NULL}. */ public static CaseBuilder caseExpr(Object baseExpression) { return new CaseBuilder(baseExpression); }
/** * Begins a CASE statement, populating it with the first WHEN ... THEN branch */ public static CaseBuilder caseWhen(Criterion when, Object then) { if (when == null) { throw new IllegalArgumentException("Can't construct a CASE WHEN statement with a null criterion"); } return new CaseBuilder(null).when(when, then); }
/** * Begins a CASE statement with a base expression. Note: to use SQLite NULL literal as the base expression, * use {@link Field#NULL}. */ public static CaseBuilder caseExpr(Object baseExpression) { return new CaseBuilder(baseExpression); }
/** * Begins a CASE statement, populating it with the first WHEN ... THEN branch */ public static CaseBuilder caseWhen(Criterion when, Object then) { if (when == null) { throw new IllegalArgumentException("Can't construct a CASE WHEN statement with a null criterion"); } return new CaseBuilder(null).when(when, then); }