
de.tsl2.nano.service.util.finder.GroupBy Maven / Gradle / Ivy
package de.tsl2.nano.service.util.finder;
import java.util.Collection;
/**
* additional group by statement creator
*
* @param result bean type
* @author Thomas Schneider, Thomas Schneider
* @version $Revision$
*/
public class GroupBy extends AbstractFinder {
/** serialVersionUID */
private static final long serialVersionUID = -6987663981295488159L;
String[] attributeNames;
public GroupBy(String[] attributeNames) {
this(null, attributeNames);
}
/**
* constructor
*
* @param attributeNames, group by names
*/
public GroupBy(Class resultType, String[] attributeNames) {
super(resultType);
this.attributeNames = attributeNames;
}
/**
* {@inheritDoc}
*/
@Override
StringBuffer prepareQuery(int index,
StringBuffer currentQuery,
Collection
© 2015 - 2025 Weber Informatics LLC | Privacy Policy