public class BinaryExpressionEvaluator extends ExpressionEvalBase<BinaryExpressionNode>
INNER_JOIN_FILTERED_OUT| Constructor and Description |
|---|
BinaryExpressionEvaluator(OQLExpressionEvaluatorI<?> parent,
BinaryExpressionNode node) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getValue(BOI bo)
Computes the raw value of the expression evaluated on the provided BO.
|
java.lang.Object |
handleNumeric(java.lang.Object left,
java.lang.Object right,
java.util.function.BiFunction<java.math.BigDecimal,java.math.BigDecimal,java.lang.Number> operator) |
static java.lang.Boolean |
ilike(java.lang.String str,
java.lang.String pattern) |
static java.lang.Boolean |
like(java.lang.String str,
java.lang.String pattern) |
static java.lang.Boolean |
like(java.lang.String str,
java.lang.String pattern,
boolean ignoreCase)
Evaluates whether a string matches a SQL LIKE / ILIKE pattern (without using regex).
|
getAlias, getChildren, getEntity, getNode, getParameters, getParent, getSchema, ofpublic BinaryExpressionEvaluator(OQLExpressionEvaluatorI<?> parent, BinaryExpressionNode node) throws OQLException
OQLExceptionpublic java.lang.Object getValue(BOI bo)
OQLExpressionEvaluatorIbo - the nonnull root BO to evaluate the node onpublic java.lang.Object handleNumeric(java.lang.Object left,
java.lang.Object right,
java.util.function.BiFunction<java.math.BigDecimal,java.math.BigDecimal,java.lang.Number> operator)
public static java.lang.Boolean ilike(java.lang.String str,
java.lang.String pattern)
with ignoreCase set to truepublic static java.lang.Boolean like(java.lang.String str,
java.lang.String pattern)
with ignoreCase set to falsepublic static java.lang.Boolean like(java.lang.String str,
java.lang.String pattern,
boolean ignoreCase)
str - The string to test, nullable.pattern - The pattern to match against (supports '%' and '_', escaped by '\'), nullable.ignoreCase - Set to true for ILIKE behavior, false for LIKE behavior.Copyright © 2000-2026 OAshi S.à r.l. All Rights Reserved.