public class ReportSortInfo
extends java.lang.Object
Constructor and Description |
---|
ReportSortInfo(boolean needTopN,
int topN)
Constructor.
|
ReportSortInfo(boolean needTopN,
int topN,
SortInfo[] sortInfo)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addSortInfo(SortInfo info)
Adds the Sort information to the sort list.
|
void |
downSortInfo(int index)
Moves down the specified SortInfo.
|
boolean |
getNeedTopN()
Gets the status of whether or not to set the SelectN option.
|
SortInfo[] |
getSortInfo()
Gets all SortInfos of this report.
|
int |
getTopN()
Gets the TopN option's number.
|
int |
indexOfSortInfo(SortInfo info)
Gets the SortInfo information's index number of the specified SortInfo.
|
int |
indexOfSortInfo(java.lang.String sortBy)
Gets the SortInfo information's index number of the specified sortBy column.
|
boolean |
insertSortInfo(SortInfo sinfo,
int index)
Adds the Sort information at the specified index.
|
boolean |
isSortIn(java.lang.String sortBy)
Checks whether or not the SortInfo which is sorted by the specified SortBy column exists.
|
void |
removeSortInfo(int index)
Removes the sort information at the specified index.
|
void |
removeSortInfo(SortInfo info)
Removes the SortInfo information from the sort list.
|
void |
removeSortInfo(java.lang.String sortBy)
Removes the sort information which is sorted by the sortBy field.
|
void |
setNeedTopN(boolean needTopN)
Sets the status of whether or not to apply TopN option.
|
void |
setSortInfo(SortInfo[] sinfo)
Sets the Sort information of the report.
|
void |
setTopN(int topN)
Sets the topN option's number.
|
void |
upSortInfo(int index)
Moves up the specified SortInfo.
|
public ReportSortInfo(boolean needTopN, int topN)
needTopN
- Specifies whether to set topN or not.topN
- The topN number.public ReportSortInfo(boolean needTopN, int topN, SortInfo[] sortInfo)
needTopN
- Specifies whether to set topN or not.topN
- The topN number.sortInfo
- The SortInfo information of the report.public boolean getNeedTopN()
true
if the group's SelectN option is set; false
otherwise.setNeedTopN(boolean)
public int getTopN()
true
.#setNeedTopN(boolean)}, {@link #setTopN(int)}
public void setTopN(int topN)
true
.topN
- The number of TopN option.setNeedTopN(boolean)
public void setNeedTopN(boolean needTopN)
needSelectN
- Specifies the status of needTopN.public void setSortInfo(SortInfo[] sinfo)
sinfo
- The Sort information of the report.public void addSortInfo(SortInfo info)
info
- SortInfo information.public boolean insertSortInfo(SortInfo sinfo, int index)
sinfo
- SortInfo information.index
- The specified index of the Sort list.true
if the SortInfo is inserted successfully;false
otherwise.public void removeSortInfo(SortInfo info)
info
- The SortInfo to be removed.public void removeSortInfo(java.lang.String sortBy)
sortBy
- The mapping name of the SortBy column.public void removeSortInfo(int index)
index
- Index number of the sort information.public int indexOfSortInfo(java.lang.String sortBy)
sortBy
- The mapping name of the sortBy column.public int indexOfSortInfo(SortInfo info)
info
- The specified SortInfo.public void upSortInfo(int index)
index
- Index number of SortInfo.public void downSortInfo(int index)
index
- Index number of SortInfo.public boolean isSortIn(java.lang.String sortBy)
sortBy
- The mapping name of the sortBy column.true
if the SortInfo exists; false
otherwise.public SortInfo[] getSortInfo()