public static void addFetches(IMutableSearch search, String... properties) { if (properties != null) { for (String property : properties) { addFetch(search, property); } } }
public Search addFetches(String... properties) { SearchUtil.addFetches(this, properties); return this; }
/** * If this field is used with <code>resultMode == RESULT_MAP</code>, the * <code>key</code> will be used as the key for this value in the map. */ public Search addField(String property, String key) { SearchUtil.addField(this, property, key); return this; }
public static void addFilters(IMutableSearch search, Filter... filters) { if (filters != null) { for (Filter filter : filters) { addFilter(search, filter); } } }
/** * Add a filter that uses a custom expression. * * @see {@link Filter#custom(String)} */ public Search addFilterCustom(String expression) { SearchUtil.addFilterCustom(this, expression); return this; }
/** * Add a filter that uses the == operator. */ public Search addFilterEqual(String property, Object value) { SearchUtil.addFilterEqual(this, property, value); return this; }
/** * Add a filter that uses the IS EMPTY operator. */ public Search addFilterEmpty(String property) { SearchUtil.addFilterEmpty(this, property); return this; }
/** * Add a filter that uses the ALL operator. */ public Search addFilterAll(String property, Filter filter) { SearchUtil.addFilterAll(this, property, filter); return this; }
/** * Add a filter that uses the AND operator. * * <p> * This takes a variable number of parameters. Any number of <code>Filter * </code>s can be * specified. */ public Search addFilterAnd(Filter... filters) { SearchUtil.addFilterAnd(this, filters); return this; }
public Search addFields(Field... fields) { SearchUtil.addFields(this, fields); return this; }
public Search addFilter(Filter filter) { SearchUtil.addFilter(this, filter); return this; }
/** * Add a filter that uses a custom expression. * * @see {@link Filter#custom(String, Object...)} */ public Search addFilterCustom(String expression, Object... values) { SearchUtil.addFilterCustom(this, expression, values); return this; }
/** * Add a filter that uses the < operator. */ public static void addFilterLessThan(IMutableSearch search, String property, Object value) { addFilter(search, Filter.lessThan(property, value)); }
public static void addFields(IMutableSearch search, Field... fields) { if (fields != null) { for (Field field : fields) { addField(search, field); } } }
/** * Add a filter that uses a custom expression. * * @see {@link Filter#custom(String, Collection)} */ public Search addFilterCustom(String expression, Collection<?> values) { SearchUtil.addFilterCustom(this, expression, values); return this; }
public Search addFetch(String property) { SearchUtil.addFetch(this, property); return this; }
/** * Add a filter that uses the NOT IN operator. */ public static void addFilterNotIn(IMutableSearch search, String property, Collection<?> value) { addFilter(search, Filter.notIn(property, value)); }
/** * If this field is used with <code>resultMode == RESULT_MAP</code>, the * <code>property</code> will also be used as the key for this value in the * map. */ public Search addField(String property) { SearchUtil.addField(this, property); return this; }
/** * Add a filter that uses the NOT IN operator. * * <p> * This takes a variable number of parameters. Any number of values can be * specified. */ public static void addFilterNotIn(IMutableSearch search, String property, Object... value) { addFilter(search, Filter.notIn(property, value)); }
/** * If this field is used with <code>resultMode == RESULT_MAP</code>, the * <code>property</code> will also be used as the key for this value in the * map. */ public Search addField(String property, int operator) { SearchUtil.addField(this, property, operator); return this; }