public UpperCaseImpl upperCase(DynamicOperandImpl operand) { return new UpperCaseImpl(operand); }
/** * Calls accept on the dynamic operand in the lower-case node. */ @Override public boolean visit(UpperCaseImpl node) { return node.getOperand().accept(this); }
@Override public boolean visit(UpperCaseImpl node) { node.setQuery(query); return super.visit(node); }
@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; }
public UpperCaseImpl upperCase(DynamicOperandImpl operand) { return new UpperCaseImpl(operand); }
/** * Calls accept on the dynamic operand in the lower-case node. */ @Override public boolean visit(UpperCaseImpl node) { return node.getOperand().accept(this); }
@Override public boolean visit(UpperCaseImpl node) { node.setQuery(query); return super.visit(node); }
@Override public void restrict(FilterImpl f, Operator operator, PropertyValue v) { // UPPER(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); } }
public UpperCaseImpl upperCase(DynamicOperandImpl operand) { return new UpperCaseImpl(operand); }
/** * Calls accept on the dynamic operand in the lower-case node. */ @Override public boolean visit(UpperCaseImpl node) { return node.getOperand().accept(this); }
@Override public boolean visit(UpperCaseImpl node) { node.setQuery(query); return super.visit(node); }
@Override public void restrict(FilterImpl f, Operator operator, PropertyValue v) { // UPPER(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 DynamicOperandImpl createCopy() { return new UpperCaseImpl(operand.createCopy()); }
@Override public void restrict(FilterImpl f, Operator operator, PropertyValue v) { // UPPER(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 DynamicOperandImpl createCopy() { return new UpperCaseImpl(operand.createCopy()); }
@Override public DynamicOperandImpl createCopy() { return new UpperCaseImpl(operand.createCopy()); }