public CoalesceImpl coalesce(DynamicOperandImpl operand1, DynamicOperandImpl operand2) { return new CoalesceImpl(operand1, operand2); }
/** * Calls accept on the dynamic operand in the coalesce node. */ @Override public boolean visit(CoalesceImpl node) { node.getOperand1().accept(this); node.getOperand2().accept(this); return true; }
@Override public boolean visit(CoalesceImpl node) { node.setQuery(query); return super.visit(node); }
@Override public void restrict(FilterImpl f, Operator operator, PropertyValue v) { 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) { 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); } }
/** * Calls accept on the dynamic operand in the coalesce node. */ @Override public boolean visit(CoalesceImpl node) { node.getOperand1().accept(this); node.getOperand2().accept(this); return true; }
@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 CoalesceImpl coalesce(DynamicOperandImpl operand1, DynamicOperandImpl operand2) { return new CoalesceImpl(operand1, operand2); }
@Override public boolean visit(CoalesceImpl node) { node.setQuery(query); return super.visit(node); }
/** * Calls accept on the dynamic operand in the coalesce node. */ @Override public boolean visit(CoalesceImpl node) { node.getOperand1().accept(this); node.getOperand2().accept(this); return true; }
@Override public void restrictList(FilterImpl f, List<PropertyValue> list) { String fn = getFunction(f.getSelector()); f.restrictPropertyAsList(QueryConstants.FUNCTION_RESTRICTION_PREFIX + fn, list); }
public CoalesceImpl coalesce(DynamicOperandImpl operand1, DynamicOperandImpl operand2) { return new CoalesceImpl(operand1, operand2); }
@Override public boolean visit(CoalesceImpl node) { node.setQuery(query); return super.visit(node); }
@Override public void restrictList(FilterImpl f, List<PropertyValue> list) { String fn = getFunction(f.getSelector()); f.restrictPropertyAsList(QueryConstants.FUNCTION_RESTRICTION_PREFIX + fn, list); }
@Override public DynamicOperandImpl createCopy() { return new CoalesceImpl(operand1.createCopy(), operand2.createCopy()); }
@Override public void restrictList(FilterImpl f, List<PropertyValue> list) { String fn = getFunction(f.getSelector()); f.restrictPropertyAsList(QueryConstants.FUNCTION_RESTRICTION_PREFIX + fn, list); }
@Override public DynamicOperandImpl createCopy() { return new CoalesceImpl(operand1.createCopy(), operand2.createCopy()); }
@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 DynamicOperandImpl createCopy() { return new CoalesceImpl(operand1.createCopy(), operand2.createCopy()); }
@Override public void restrict(FilterImpl f, Operator operator, PropertyValue v) { 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); } }