public interface JRSortField extends JRCloneable
<sortField>
elements in the
report template. When at least one sort field is specified for the report, the original report
data source (either passed directly or provided by a query executer) is passed to a sorted
IndexedDataSource
instance that fetches all the records
from it, performs an in-memory
sort according to the specified fields, and replaces the original data source in the
report-filling process.
The sort field name should coincide with a report field name. Fields used for sorting
should have types that implement java.util.Comparable
. Sorting will be performed
using the natural order for all fields except those of type java.lang.String
, for which
a collator corresponding to the report fill locale is used.
When several sort fields are specified, the sorting will be performed using the fields as
sort keys in the order in which they appear in the report template.IndexedDataSource
,
DatasetSortUtil
,
SortedDataSource
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Gets the sort field name.
|
SortOrderEnum |
getOrderValue()
Gets the sort order for the field.
|
SortFieldTypeEnum |
getType()
Gets the type of the sort field.
|
clone
java.lang.String getName()
SortOrderEnum getOrderValue()
SortFieldTypeEnum getType()
© 2001-2014 TIBCO Software Inc. www.jaspersoft.com