public class GroupInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ASCENDING
The sort type of the group.
|
static int |
DESCENDING
The sort type of the group.
|
static int |
NOTSORTED
The sort type of the group.
|
static int |
SELECTE_TYPE_All
The select N type.
|
static int |
SELECTE_TYPE_BOTTOM_N
The select N type.
|
static int |
SELECTE_TYPE_NONE
Deprecated.
The select N type.
|
static int |
SELECTE_TYPE_TOP_N
The select N type.
|
Constructor and Description |
---|
GroupInfo(java.lang.String groupBy,
int groupOrder)
Constructor.
|
GroupInfo(java.lang.String groupBy,
int groupOrder,
boolean needSelectN,
int selectN,
boolean keepOthers,
java.lang.String otherName,
SortInfo[] sortInfo)
Constructor.
|
GroupInfo(java.lang.String groupBy,
int groupOrder,
boolean needSelectN,
int selectN,
boolean keepOthers,
java.lang.String otherName,
SortInfo[] sortInfo,
java.lang.String report)
Constructor.
|
GroupInfo(java.lang.String groupBy,
int groupOrder,
java.lang.String report)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addSortInfo(SortInfo info)
Adds SortInfo information of the group.
|
void |
downSortInfo(int index)
Moves down the sort information with the specified index in the SortInfo list.
|
java.lang.String |
getBLName()
Gets BusinessLogic field name for the groupBy.
|
java.lang.String |
getGroupBy()
Gets the groupBy column's mapping name.
|
int |
getGroupOrder()
Gets the group's sort type.
|
boolean |
getKeepOthers()
Gets the status of whether or not to keep the records outside the SelectN in the "Others Group".
|
boolean |
getNeedTopN()
Gets the status of whether or not to set SelectN option.
|
java.lang.String |
getOtherName()
Gets the group name of the "Others Group".
|
java.lang.String |
getReport()
Gets the report's handle of the group.
|
int |
getSelectN()
Gets the SelectN option's number.
|
int |
getSelectType()
Gets the type of SelectN option.
|
SortInfo[] |
getSortInfo()
Gets SortInfo information of the group.
|
SpecGroupInfo |
getSpecGroupInfo()
Gets the User Defined group's conditions.
|
int |
getTopN()
Gets the SelectN option's number.
|
int |
indexOfSortInfo(SortInfo info)
Gets the index number of the specified sort information.
|
int |
indexOfSortInfo(java.lang.String sortBy)
Gets the index number of the sort information with the specified SortBy's mapping name.
|
boolean |
insertSortInfo(SortInfo sinfo,
int index)
Adds SortInfo information at the specified index.
|
boolean |
isSortIn(java.lang.String sortBy)
Checks whether or not there is a SortInfo information which is sorted by the specified SortBy mapping name.
|
void |
removeSortInfo(int index)
Removes sort information at the specified index.
|
void |
removeSortInfo(SortInfo info)
Removes the SortInfo information from the group.
|
void |
removeSortInfo(java.lang.String sortBy)
Removes SortInfo information with specified SortBy's mapping name.
|
void |
setBLName(java.lang.String blName)
Sets the BusinessLogic field name for the groupBy.
|
void |
setGroupOrder(int groupOrder)
Sets the group's sort type.
|
void |
setKeepOthers(boolean keepOthers)
Sets the status of whether or not to keep the records outside the SelectN in the "Others Group".
|
void |
setNeedTopN(boolean needSelectN)
Sets the status of whether or not to apply SelectN option.
|
void |
setOtherName(java.lang.String otherName)
Sets the group name of the "Others Group".
|
void |
setReport(java.lang.String report)
Sets the report's handle of the group.
|
void |
setSelectN(int selectN)
Sets SelectN option's number.
|
void |
setSelectType(int selectType)
Sets the type of SelectN option.
|
void |
setSortInfo(SortInfo[] sInfo)
Sets SortInfo information of the group.
|
void |
setSpecGroupInfo(SpecGroupInfo info)
Sets the User Defined group's conditions.
|
void |
setTopN(int selectN)
Sets SelectN option's number.
|
java.lang.String |
toString() |
void |
upSortInfo(int index)
Moves up the sort information with the specified index in the SortInfo list.
|
public static final int ASCENDING
public static final int DESCENDING
public static final int NOTSORTED
public static final int SELECTE_TYPE_All
public static final int SELECTE_TYPE_NONE
public static final int SELECTE_TYPE_TOP_N
public static final int SELECTE_TYPE_BOTTOM_N
public GroupInfo(java.lang.String groupBy, int groupOrder)
groupBy
- The mapping name of the groupBy field.groupOrder
- The sort type of the group.#ASCENDING}, {@link #DESCENDING}, {@link #NOTSORTED}
public GroupInfo(java.lang.String groupBy, int groupOrder, java.lang.String report)
groupBy
- The mapping name of the groupBy field.groupOrder
- The sort type of the group.report
- The handle of the report.#ASCENDING}, {@link #DESCENDING}, {@link #NOTSORTED}
public GroupInfo(java.lang.String groupBy, int groupOrder, boolean needSelectN, int selectN, boolean keepOthers, java.lang.String otherName, SortInfo[] sortInfo)
groupBy
- The mapping name of the groupBy field.groupOrder
- Indicates the sort type of the group.needSelectN
- Indicates whether or not to apply SelectN option.SelectN
- Indicates the SelectN option's number.keepOthers
- Indicates whether or not to keep the records outside the SelectN in "Others Group".otherName
- Indicates the group name of the "Others Group".sortInfo
- The SortInfo information of the group.#ASCENDING}, {@link #DESCENDING}, {@link #NOTSORTED}
public GroupInfo(java.lang.String groupBy, int groupOrder, boolean needSelectN, int selectN, boolean keepOthers, java.lang.String otherName, SortInfo[] sortInfo, java.lang.String report)
groupBy
- The mapping name of the groupBy field.groupOrder
- Indicates the sort type of the group.needSelectN
- Indicates whether or not to apply SelectN option.SelectN
- Indicates the SelectN option's number.keepOthers
- Indicates whether or not to keep the records outside the SelectN in the "Others Group".otherName
- Indicates the group name of the "Others Group".sortInfo
- The SortInfo information of the group.report
- Handle of the report.#ASCENDING}, {@link #DESCENDING}, {@link #NOTSORTED}
public java.lang.String getReport()
public void setReport(java.lang.String report)
report
- Report handle.public java.lang.String getGroupBy()
public java.lang.String getBLName()
public void setBLName(java.lang.String blName)
blName
- The BusinessLogic field name for the groupBy.public int getGroupOrder()
setGroupOrder(int)
public void setGroupOrder(int groupOrder)
groupOrder
- The group's sort type.#ASCENDING}, {@link #DESCENDING}, {@link #NOTSORTED}
public boolean getNeedTopN()
true
if the group's SelectN option is set; false
otherwise.setNeedTopN(boolean)
public int getTopN()
true
.#setNeedTopN(boolean)}, {@link #setSelectN(int)}
public boolean getKeepOthers()
true
.true
if the records outside the SelectN are to be kept in the "Others Group"; false
otherwise.#setKeepOthers(boolean)}, {@link #setSelectN(int)}
public java.lang.String getOtherName()
public void setTopN(int selectN)
true
.selectN
- The number of SelectN option.setNeedTopN(boolean)
public void setNeedTopN(boolean needSelectN)
needSelectN
- Specifies the status of needTopN.public void setKeepOthers(boolean keepOthers)
true
.keepOthers
- Sets true
if the records outside the SelectN are to be kept in the "Others Group"; false
otherwise.setNeedTopN(boolean)
public void setOtherName(java.lang.String otherName)
true
.otherName
- Name string of the "Others Group".#setNeedTopN(boolean)}, {@link #setKeepOthers(boolean)}
public SortInfo[] getSortInfo()
public void setSortInfo(SortInfo[] sInfo)
sInfo
- The SortInfo information.public void addSortInfo(SortInfo info)
info
- The SortInfo informationpublic boolean insertSortInfo(SortInfo sinfo, int index)
sinfo
- SortInfo information.index
- The index number of the sort information list.true
if the SortInfo information is inserted successfully; false
otherwise.public void removeSortInfo(SortInfo info)
info
- SortInfo information to be removed.public void removeSortInfo(java.lang.String sortBy)
sortBy
- The SortBy's mapping name of the SortInfo information.#SortInfo}
public void removeSortInfo(int index)
index
- Index number of the SortInfo information.public int indexOfSortInfo(java.lang.String sortBy)
sortBy
- The SortBy's mapping name of SortInfo.#SortInfo}
public int indexOfSortInfo(SortInfo info)
info
- The SortInfo object to be detected.public void upSortInfo(int index)
index
- The index number of the SortInfo in the SortInfo list.public void downSortInfo(int index)
index
- The index number of the SortInfo in the SortInfo list.public boolean isSortIn(java.lang.String sortBy)
sortBy
- The specified SortBy mapping name.true
if there exists SortInfo information which is sorted by the specified SortBy mapping name; false
otherwise.public void setSpecGroupInfo(SpecGroupInfo info)
info
- The User Defined group's conditions.public SpecGroupInfo getSpecGroupInfo()
public java.lang.String toString()
toString
in class java.lang.Object
public void setSelectType(int selectType)
selectType
- Int value of SelectN option's type.#SELECTE_TYPE_All},{@link #SELECTE_TYPE_TOP_N}, {@link #SELECTE_TYPE_BOTTOM_N}
public int getSelectType()
setSelectType(int)
public int getSelectN()
true
.setNeedTopN(boolean)
public void setSelectN(int selectN)
true
.Number
- of SelectN option.setNeedTopN(boolean)