CaseWhen
Represents a conditional CASE expression that can be extended with additional WHEN clauses or completed with an ELSE clause.
Parameters
The return type of the CASE expression
Properties
The boolean conditions to check and their resulting expressions if the condition is met
Determines the column type by examining the result expressions.
Optional ELSE result expression that is used when no WHEN conditions match
Optional value to compare against in the CASE statement (for value-based CASE expressions)
Functions
Specifies a conversion from one data type to another.
Returns the length of this string expression, measured in characters, or null
if this expression is null.
Returns the number of input rows for which the value of this expression is not null.
Adds an ELSE clause with an expression result, completing the CASE statement.
Adds an ELSE clause with a literal result, completing the CASE statement.
Checks if this expression is equal to some t value.
Checks if this expression is equal to some other expression.
Checks if this expression is equal to some other expression.
Checks if this expression is equals to single value returned from query.
Returns all result expressions from the WHEN clauses
Returns value evaluated at the row that is the first row of the window frame.
Calls a custom SQL function with the specified functionName and passes this expression as its only argument.
Checks if this expression is greater than some t value.
Checks if this expression is greater than some other expression.
Checks if this expression is greater than some other expression.
Checks if this expression is greater than or equal to some t value
Checks if this expression is greater than or equal to some other expression.
Checks if this expression is greater than or equal to some other expression
Checks if this expression is greater than or equal to the single value returned from query.
Checks if this expression is greater than the single value returned from query.
Checks if this expression is equal to any element from list.
Checks if this expression is equals to any row returned from query.
Changes this integer expression to a BigDecimal type.
Checks if this expression is not equal to some t value, with null
treated as a comparable value
Checks if this expression is not equal to some other expression.
Checks if this expression is not equal to some other expression, with null
treated as a comparable value
Checks if this expression is equal to some t value, with null
treated as a comparable value
Checks if this expression is equal to some other expression.
Checks if this expression is equal to some other expression, with null
treated as a comparable value
Returns true
if this string expression is null or empty, false
otherwise.
Returns value evaluated at the row that is offset rows before the current row within the partition; if there is no such row, instead returns defaultValue. Both offset and defaultValue are evaluated with respect to the current row.
Returns value evaluated at the row that is offset rows after the current row within the partition; if there is no such row, instead returns defaultValue. Both offset and defaultValue are evaluated with respect to the current row.
Checks if this expression is less than some t value.
Checks if this expression is less than some other expression.
Checks if this expression is less than some other expression.
Checks if this expression is less than or equal to some t value
Checks if this expression is less than or equal to some other expression.
Checks if this expression is less than or equal to some other expression
Checks if this expression is less than or equal to the single value returned from query.
Checks if this expression is less than the single value returned from query.
Checks if this expression matches the specified pattern.
Checks if this expression matches the specified expression.
Checks if this expression matches the specified pattern.
Calculates the remainder of dividing this expression by the t value.
Calculates the remainder of dividing this expression by the other expression.
Checks if this expression is not equal to some other value.
Checks if this expression is not equal to some other expression.
Checks if this expression is not equal to some other expression.
Checks if this expression is not equals to single value returned from query.
Checks if this expression is not equal to any element from list.
Checks if this expression is not equals to any row returned from query.
Checks if this expression is not equal to any element from the column of table with only a single column.
Checks if this expression doesn't match the specified pattern.
Checks if this expression doesn't match the specified pattern.
Checks if this expression doesn't match the specified expression.
Returns value evaluated at the row that is the n'th row of the window frame (counting from 1); null if no such row.
Checks if this expression matches the pattern. Supports regular expressions.
Calculates the remainder of dividing this expression by the t value.
Calculates the remainder of dividing this expression by the other expression.
Returns the sample standard deviation of the non-null input values, or null
if there are no non-null values.
Appends the SQL representation of this expression to the specified queryBuilder.
Adds a conditional expression with a result if the condition evaluates to true.
Adds a conditional expression with a literal result if the condition evaluates to true.