Package net.sf.jasperreports.engine.fill
Class DatasetSortUtil
- java.lang.Object
-
- net.sf.jasperreports.engine.fill.DatasetSortUtil
-
public class DatasetSortUtil extends Object
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static String
EXCEPTION_MESSAGE_KEY_SORT_FIELD_NOT_FOUND
static String
EXCEPTION_MESSAGE_KEY_SORT_VARIABLE_NOT_FOUND
-
Constructor Summary
Constructors Constructor Description DatasetSortUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JRSortField[]
getAllSortFields(JRFillDataset dataset)
Returns all current sort field criteria, including the dynamic ones provided as report parameter.static SortedDataSource
getSortedDataSource(BaseReportFiller filler, JRFillDataset dataset, Locale locale)
static boolean
needSorting(JRFillDataset dataset)
-
-
-
Field Detail
-
EXCEPTION_MESSAGE_KEY_SORT_FIELD_NOT_FOUND
public static final String EXCEPTION_MESSAGE_KEY_SORT_FIELD_NOT_FOUND
- See Also:
- Constant Field Values
-
EXCEPTION_MESSAGE_KEY_SORT_VARIABLE_NOT_FOUND
public static final String EXCEPTION_MESSAGE_KEY_SORT_VARIABLE_NOT_FOUND
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAllSortFields
public static JRSortField[] getAllSortFields(JRFillDataset dataset)
Returns all current sort field criteria, including the dynamic ones provided as report parameter.
-
needSorting
public static boolean needSorting(JRFillDataset dataset)
-
getSortedDataSource
public static SortedDataSource getSortedDataSource(BaseReportFiller filler, JRFillDataset dataset, Locale locale) throws JRException
- Throws:
JRException
-
-