jpa.getWhere().addParameterized(where, parameters == null ? new String[0] : parameters.keySet().toArray(new String[parameters.size()]));
if (parameters != null) jpa.getParameters().putAll(parameters);
}
if (groupBy != null && !"".equals(groupBy.trim())) {
jpa.groupBy(groupBy.split(","));
if (having != null && !"".equals(having.trim())) {
jpa.getHaving().addParameterized(having, parameters == null ? new String[0] : parameters.keySet().toArray(new String[parameters.size()]));
if (parameters != null) jpa.getParameters().putAll(parameters);
}