/** * @return A greater than or equal to Expression. */ public Expression gte(E value) { return ExpressionFactory.greaterOrEqualExp(getExpression(), value); }
/** * A convenience method to create an OBJ_PATH "greater than or equal to" * expression. */ public static Expression greaterOrEqualExp(String pathSpec, Object value) { return greaterOrEqualExp(new ASTObjPath(pathSpec), value); }
/** * @return Represents a greater than or equal relationship between two * attributes (columns). */ public Expression gte(Property<?> value) { return ExpressionFactory.greaterOrEqualExp(getExpression(), value.getExpression()); }
Expression gte(Filter filter) { return (filter.getValue() == null) ? expFalse() : greaterOrEqualExp(filter.getProperty(), filter.getValue()); }
newExpression = ExpressionFactory.greaterExp(key, numVal); } else if (t == Filter.GREATER_THAN_EQUAL) { newExpression = ExpressionFactory.greaterOrEqualExp(key, numVal); newExpression = ExpressionFactory.lessOrEqualExp(key, numVal); } else if (t == Filter.GREATER_THAN || t == Filter.GREATER_THAN_EQUAL) { newExpression = ExpressionFactory.greaterOrEqualExp(key, numVal); newExpression = ExpressionFactory.greaterExp(key, dateVal); } else if (t == Filter.GREATER_THAN_EQUAL) { newExpression = ExpressionFactory.greaterOrEqualExp(key, dateVal);
public void addRange(String fieldName, Object start, Object end) { ObjEntityViewField field = queryTarget.getField(fieldName); String path = null; if (field.getCalcType().getValue() == CalcTypeEnum.NO_CALC_TYPE_VALUE) { path = field.getObjAttribute().getName(); } else if (field.isLookup()) { path = field.getObjRelationship().getName(); } Object rawStart = field.toRawValue(start); Object rawEnd = field.toRawValue(end); Expression expr = null; if (rawStart != null && rawEnd != null) expr = ExpressionFactory.betweenExp(path, rawStart, rawEnd); else if (rawStart != null) expr = ExpressionFactory.greaterOrEqualExp(path, rawStart); else if (rawEnd != null) expr = ExpressionFactory.lessOrEqualExp(path, rawEnd); if (expr != null) conditions.add(expr); }