@Override public OrderEntry getOrderEntry(SelectorImpl s, OrderingImpl o) { String fn = getFunction(s); if (fn != null) { return new OrderEntry( QueryConstants.FUNCTION_RESTRICTION_PREFIX + fn, Type.STRING, o.isDescending() ? OrderEntry.Order.DESCENDING : OrderEntry.Order.ASCENDING); } return null; }
@Override public OrderEntry getOrderEntry(SelectorImpl s, OrderingImpl o) { String fn = getFunction(s); if (fn != null) { return new OrderEntry( QueryConstants.FUNCTION_RESTRICTION_PREFIX + fn, Type.STRING, o.isDescending() ? OrderEntry.Order.DESCENDING : OrderEntry.Order.ASCENDING); } return null; }
@Override public OrderEntry getOrderEntry(SelectorImpl s, OrderingImpl o) { String fn = getFunction(s); if (fn != null) { return new OrderEntry( QueryConstants.FUNCTION_RESTRICTION_PREFIX + fn, Type.STRING, o.isDescending() ? OrderEntry.Order.DESCENDING : OrderEntry.Order.ASCENDING); } return null; }
@Override public void restrict(FilterImpl f, Operator operator, PropertyValue v) { // LOWER(x) implies x is not null operand.restrict(f, Operator.NOT_EQUAL, null); if (operator == Operator.NOT_EQUAL && v != null) { // not supported return; } String fn = getFunction(f.getSelector()); if (fn != null) { f.restrictProperty(QueryConstants.FUNCTION_RESTRICTION_PREFIX + fn, operator, v, PropertyType.STRING); } }
@Override public void restrict(FilterImpl f, Operator operator, PropertyValue v) { // LOWER(x) implies x is not null operand.restrict(f, Operator.NOT_EQUAL, null); if (operator == Operator.NOT_EQUAL && v != null) { // not supported return; } String fn = getFunction(f.getSelector()); if (fn != null) { f.restrictProperty(QueryConstants.FUNCTION_RESTRICTION_PREFIX + fn, operator, v, PropertyType.STRING); } }
@Override public void restrict(FilterImpl f, Operator operator, PropertyValue v) { // LOWER(x) implies x is not null operand.restrict(f, Operator.NOT_EQUAL, null); if (operator == Operator.NOT_EQUAL && v != null) { // not supported return; } String fn = getFunction(f.getSelector()); if (fn != null) { f.restrictProperty(QueryConstants.FUNCTION_RESTRICTION_PREFIX + fn, operator, v, PropertyType.STRING); } }