@Test public void toFilterUsesProvidedFilterFactory() throws Exception { final boolean[] called = { false }; FilterFactory ff = new FilterFactoryImpl() { public PropertyName property(String propName) { called[0] = true; return super.property(propName); } }; ECQL.toFilter("attName > 20", ff); Assert.assertTrue("Provided FilterFactory was not called", called[0]); }
public static Filter toFilter(final String ecqlPredicate) throws CQLException { Filter filter = ECQL.toFilter(ecqlPredicate, null); return filter; }
ECQL { public static Filter toFilter(final String ecqlPredicate) throws CQLException { Filter filter = ECQL.toFilter(ecqlPredicate, null); return filter; } }
ECQL { public static Filter toFilter(final String ecqlPredicate) throws CQLException { Filter filter = ECQL.toFilter(ecqlPredicate, null); return filter; } private  ECQL(); }
ECQL { public static Filter toFilter(final String ecqlPredicate) throws CQLException { Filter filter = ECQL.toFilter(ecqlPredicate, null); return filter; } private  ECQL(); static Filter toFilter(final String ecqlPredicate); static Filter toFilter(final String ecqlPredicate, final FilterFactory filterFactory); static Expression toExpression(String ecqlExpression); static Expression toExpression(final String ecqlExpression,
            final FilterFactory filterFactory); static List<Filter> toFilterList(final String ecqlSequencePredicate); static List<Filter> toFilterList(final String ecqlSequencePredicate, FilterFactory filterFactory); static String toCQL( List<Filter> filterList ); static String toCQL( Filter filter ); static String toCQL( Expression expression ); static final void main(String[] args); }
ECQL { public static Filter toFilter(final String ecqlPredicate) throws CQLException { Filter filter = ECQL.toFilter(ecqlPredicate, null); return filter; } private  ECQL(); static Filter toFilter(final String ecqlPredicate); static Filter toFilter(final String ecqlPredicate, final FilterFactory filterFactory); static Expression toExpression(String ecqlExpression); static Expression toExpression(final String ecqlExpression,
            final FilterFactory filterFactory); static List<Filter> toFilterList(final String ecqlSequencePredicate); static List<Filter> toFilterList(final String ecqlSequencePredicate, FilterFactory filterFactory); static String toCQL( List<Filter> filterList ); static String toCQL( Filter filter ); static String toCQL( Expression expression ); static final void main(String[] args);  }