@Test public void testAddSelections() { QueryExpressions<Person> qe = new QueryExpressions<Person>(Person.class); qe.addSelections(PersonDto.class); assertEquals(2, qe.getSelections().size()); assertEquals("name", qe.getSelections().get(0)); assertEquals("counter", qe.getSelections().get(1)); }
public void addSelections(String expressions) { String[] exp = expressions.split(","); for (int i = 0; i < exp.length; i++) { this.selections.add(exp[i].trim()); } }
QueryExpressions { public void addSelections(String expressions) { String[] exp = expressions.split(","); for (int i = 0; i < exp.length; i++) { this.selections.add(exp[i].trim()); } } }
QueryExpressions { public void addSelections(String expressions) { String[] exp = expressions.split(","); for (int i = 0; i < exp.length; i++) { this.selections.add(exp[i].trim()); } } QueryExpressions();  QueryExpressions(Class<T> type); }
QueryExpressions { public void addSelections(String expressions) { String[] exp = expressions.split(","); for (int i = 0; i < exp.length; i++) { this.selections.add(exp[i].trim()); } } QueryExpressions();  QueryExpressions(Class<T> type); List<String> getSelections(); void setSelections(List<String> expressions); void addSelections(String expressions); void addSelections(String... expressions); void addSelections(Class<?> selectionType); void addSelection(String selection); boolean hasSelections(); List<String> getGroups(); void setGroups(List<String> groups); void addGroups(String groups); void addGroups(String... groups); void addGroup(String selection); boolean hasGroups(); List<String> getOrders(); String getOrdersAsString(); void setOrders(List<String> orders); void addOrders(String orders); void addOrders(String... orders); void addOrder(String selection); boolean hasOrders(); List<QueryPropertyRestriction> getRestrictions(); void setRestrictions(List<QueryPropertyRestriction> restrictions); void addRestrictions(Map<String, Object> restrictions); void addRestriction(String property, Object value); void addRestriction(String property, QueryPropertyRestriction.Operator operator, Object value); Map<String, Object> getParameters(); void setParameters(Map<String, Object> parameters); void addParameter(String parameter, Object value); }
QueryExpressions { public void addSelections(String expressions) { String[] exp = expressions.split(","); for (int i = 0; i < exp.length; i++) { this.selections.add(exp[i].trim()); } } QueryExpressions();  QueryExpressions(Class<T> type); List<String> getSelections(); void setSelections(List<String> expressions); void addSelections(String expressions); void addSelections(String... expressions); void addSelections(Class<?> selectionType); void addSelection(String selection); boolean hasSelections(); List<String> getGroups(); void setGroups(List<String> groups); void addGroups(String groups); void addGroups(String... groups); void addGroup(String selection); boolean hasGroups(); List<String> getOrders(); String getOrdersAsString(); void setOrders(List<String> orders); void addOrders(String orders); void addOrders(String... orders); void addOrder(String selection); boolean hasOrders(); List<QueryPropertyRestriction> getRestrictions(); void setRestrictions(List<QueryPropertyRestriction> restrictions); void addRestrictions(Map<String, Object> restrictions); void addRestriction(String property, Object value); void addRestriction(String property, QueryPropertyRestriction.Operator operator, Object value); Map<String, Object> getParameters(); void setParameters(Map<String, Object> parameters); void addParameter(String parameter, Object value);  }