de.tsl2.nano.service.util.finder.OrderBy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tsl2.nano.serviceaccess Show documentation
Show all versions of tsl2.nano.serviceaccess Show documentation
TSL2 JEE Service Access (Generic Services for Entity Access, JEE File-System-Connector, Generic Featuring, Job-Scheduling, BeanContainer, Batch, Comfortable Bean Query Definitions, JAAS, Authentification, Authorization, )
The newest version!
package de.tsl2.nano.service.util.finder;
import java.util.Collection;
/**
* additional order by statement creator
*
* @param result bean type
* @author Thomas Schneider, Thomas Schneider
* @version $Revision$
*/
public class OrderBy extends AbstractFinder {
/** serialVersionUID */
private static final long serialVersionUID = -6987663981295488159L;
String[] attributeNames;
public OrderBy(String[] attributeNames) {
this(null, attributeNames);
}
/**
* constructor
*
* @param attributeNames, for ascending use prefix +. for descendings prefix -. default is ascending.
*/
public OrderBy(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