|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjet.api.GroupInfo
public class GroupInfo
A infomation package of group and sort
| Field Summary | |
|---|---|
static int |
ASCENDING
sort type of group |
static int |
DESCENDING
sort type of group |
static int |
NOTSORTED
sort type of group |
static int |
SELECTE_TYPE_All
select N type |
static int |
SELECTE_TYPE_BOTTOM_N
select N type |
static int |
SELECTE_TYPE_NONE
select N type |
static int |
SELECTE_TYPE_TOP_N
select N type |
| Constructor Summary | |
|---|---|
GroupInfo(java.lang.String groupBy,
int groupOrder)
Constructor. |
|
GroupInfo(java.lang.String groupBy,
int groupOrder,
boolean needTopN,
int topN,
boolean keepOthers,
java.lang.String otherName,
SortInfo[] sortInfo)
Constructor. |
|
GroupInfo(java.lang.String groupBy,
int groupOrder,
boolean needTopN,
int topN,
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. |
|
| Method Summary | |
|---|---|
void |
addSortInfo(SortInfo info)
add sort information of this group |
void |
downSortInfo(int index)
move down sort information with specified index |
java.lang.String |
getBLName()
Gets business logic field name |
java.lang.String |
getGroupBy()
get groupby column name |
int |
getGroupOrder()
get group order |
boolean |
getKeepOthers()
get keepOthers status |
boolean |
getNeedTopN()
get topN status |
java.lang.String |
getOtherName()
get "Others" group name |
java.lang.String |
getReport()
get report handle |
int |
getSelectN()
|
int |
getSelectType()
|
SortInfo[] |
getSortInfo()
get all sort information of this group |
SpecGroupInfo |
getSpecGroupInfo()
get special group infomation |
int |
getTopN()
get topN number |
int |
indexOfSortInfo(SortInfo info)
get index number of specified sort infomation |
int |
indexOfSortInfo(java.lang.String sortBy)
get index number of sort infomation with specified column name |
boolean |
insertSortInfo(SortInfo sinfo,
int index)
add sort information at specified index |
boolean |
isSortIn(java.lang.String sortBy)
find sort information which is sorted by specified sortBy column |
void |
removeSortInfo(int index)
remove sort information at specified index |
void |
removeSortInfo(SortInfo info)
add remove information of this group |
void |
removeSortInfo(java.lang.String sortBy)
remove sort information with specified column name |
void |
setBLName(java.lang.String blName)
Sets business logic field name |
void |
setGroupOrder(int groupOrder)
set group order |
void |
setKeepOthers(boolean keepOthers)
set keepOthers status |
void |
setNeedTopN(boolean needTopN)
set needTopN status |
void |
setOtherName(java.lang.String otherName)
set "Others" group name |
void |
setReport(java.lang.String report)
set report handle |
void |
setSelectN(int selectN)
|
void |
setSelectType(int selectType)
|
void |
setSortInfo(SortInfo[] sInfo)
set sort information of this group |
void |
setSpecGroupInfo(SpecGroupInfo info)
set special group infomation |
void |
setTopN(int topN)
set topN number |
java.lang.String |
toString()
|
void |
upSortInfo(int index)
move up sort information with specified index |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public GroupInfo(java.lang.String groupBy,
int groupOrder)
groupBy - the mapping name of the groupBy field.groupOrder - the order of the group.
public GroupInfo(java.lang.String groupBy,
int groupOrder,
java.lang.String report)
groupBy - the mapping name of the groupBy field.groupOrder - the order of the group.report - the handle of the report.
public GroupInfo(java.lang.String groupBy,
int groupOrder,
boolean needTopN,
int topN,
boolean keepOthers,
java.lang.String otherName,
SortInfo[] sortInfo)
groupBy - the mapping name of the groupBy field.groupOrder - the order of the group.needTopN - indicate need topN.topN - indicate the topN number.keepOthers - indicate keep others .otherName - the name of the others group.sortInfo - the sort infomation of group.
public GroupInfo(java.lang.String groupBy,
int groupOrder,
boolean needTopN,
int topN,
boolean keepOthers,
java.lang.String otherName,
SortInfo[] sortInfo,
java.lang.String report)
groupBy - the mapping name of the groupBy field.groupOrder - the order of the group.needTopN - indicate need topN.topN - indicate the topN number.keepOthers - indicate keep others .otherName - the name of the others group.sortInfo - the sort infomation of group.report - handle of report| Method Detail |
|---|
public java.lang.String getReport()
public void setReport(java.lang.String report)
report - report handlepublic java.lang.String getGroupBy()
public java.lang.String getBLName()
public void setBLName(java.lang.String blName)
blName - business logic field namepublic int getGroupOrder()
public void setGroupOrder(int groupOrder)
groupOrder - group order numberpublic boolean getNeedTopN()
public int getTopN()
public boolean getKeepOthers()
public java.lang.String getOtherName()
public void setTopN(int topN)
topN - topN numberpublic void setNeedTopN(boolean needTopN)
needTopN - status of needTopNpublic void setKeepOthers(boolean keepOthers)
keepOthers - if report keep others togetherpublic void setOtherName(java.lang.String otherName)
otherName - name string of "Others"public SortInfo[] getSortInfo()
public void setSortInfo(SortInfo[] sInfo)
sInfo - sort informationspublic void addSortInfo(SortInfo info)
info - sort information
public boolean insertSortInfo(SortInfo sinfo,
int index)
sinfo - sort informationindex - index number of sort informations
public void removeSortInfo(SortInfo info)
info - sort informationpublic void removeSortInfo(java.lang.String sortBy)
sortBy - sortBy column of sort informationpublic void removeSortInfo(int index)
index - index number of sort informationspublic int indexOfSortInfo(java.lang.String sortBy)
sortBy - sortBy column name
public int indexOfSortInfo(SortInfo info)
info - sort infomation
public void upSortInfo(int index)
index - index numberpublic void downSortInfo(int index)
index - index numberpublic boolean isSortIn(java.lang.String sortBy)
sortBy - sortBy column name
public void setSpecGroupInfo(SpecGroupInfo info)
info - special group infomationpublic SpecGroupInfo getSpecGroupInfo()
public java.lang.String toString()
toString in class java.lang.Objectpublic void setSelectType(int selectType)
public int getSelectType()
public int getSelectN()
public void setSelectN(int selectN)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||