@Test public void shouldCreateFiltersAndParamDeclarationForSets() { HashSet<String> set = new HashSet<>(asList("one", "two", "three")); String[] properties = new String[]{"prop1", "prop2"}; Object[] values = new Object[]{set, true}; QueryUtil.useFilter(query, properties, values, typeMap(String.class, Boolean.class)); verify(query).setFilter("(prop1 == param0_0 || prop1 == param0_1 || prop1 == param0_2) && prop2 == param1"); verify(query).declareParameters("java.lang.String param0_0, java.lang.String param0_1, java.lang.String param0_2, java.lang.Boolean param1"); }
public static void useFilter(Query query, String[] properties, Object[] values, Map<String, String> fieldTypeMap) { useFilter(query, properties, values, fieldTypeMap, null); }
QueryUtil { public static void useFilter(Query query, String[] properties, Object[] values, Map<String, String> fieldTypeMap) { useFilter(query, properties, values, fieldTypeMap, null); } }
QueryUtil { public static void useFilter(Query query, String[] properties, Object[] values, Map<String, String> fieldTypeMap) { useFilter(query, properties, values, fieldTypeMap, null); } private  QueryUtil(); }
QueryUtil { public static void useFilter(Query query, String[] properties, Object[] values, Map<String, String> fieldTypeMap) { useFilter(query, properties, values, fieldTypeMap, null); } private  QueryUtil(); static void setQueryParams(Query query, QueryParams queryParams); static void useFilters(Query query, Filters filters); static void useFilter(Query query, String[] properties, Object[] values, Map<String, String> fieldTypeMap); static void useFilter(Query query, String[] properties, Object[] values, Map<String, String> fieldTypeMap,
                                 InstanceSecurityRestriction restriction); static void useFilter(Query query, List<Property> properties); static void useFilter(Query query, List<Property> properties,
                                 InstanceSecurityRestriction restriction); static void useFilterFromPattern(Query query, String pattern, List<Property> properties); static String asMatchesPattern(String string); static String asEqualsPattern(String string); static void setCountResult(Query query); }
QueryUtil { public static void useFilter(Query query, String[] properties, Object[] values, Map<String, String> fieldTypeMap) { useFilter(query, properties, values, fieldTypeMap, null); } private  QueryUtil(); static void setQueryParams(Query query, QueryParams queryParams); static void useFilters(Query query, Filters filters); static void useFilter(Query query, String[] properties, Object[] values, Map<String, String> fieldTypeMap); static void useFilter(Query query, String[] properties, Object[] values, Map<String, String> fieldTypeMap,
                                 InstanceSecurityRestriction restriction); static void useFilter(Query query, List<Property> properties); static void useFilter(Query query, List<Property> properties,
                                 InstanceSecurityRestriction restriction); static void useFilterFromPattern(Query query, String pattern, List<Property> properties); static String asMatchesPattern(String string); static String asEqualsPattern(String string); static void setCountResult(Query query);  }