|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjet.api.CTAggFieldInfo
jet.api.CTSpecialFldInfo
public class CTSpecialFldInfo
The class CTSpecialFldInfo defines the information of the Comparison Function field. The Comparison Function field is calculated based the aggregate fields in the crosstab. A comparison function refers to calculations of percentage, permillage, or difference between:
| Field Summary | |
|---|---|
static int |
DIFFERENCE
The comparison function type value. |
static int |
PERCENTAGE
The comparison function type value. |
static int |
PERMILLAGE
The comparison function type value. |
| Fields inherited from class jet.api.CTAggFieldInfo |
|---|
AVERAGE, COUNT, DISTINCTCOUNT, MAXIMUM, MINIMUM, POPULATIONSTDDEV, POPULATIONVARIANCE, SQRSUM, STDDEV, SUM, VARIANCE |
| Constructor Summary | |
|---|---|
CTSpecialFldInfo(java.lang.String mapping,
int func,
java.lang.String label,
int breakBy,
int refer,
boolean isRowDirection,
CTAggFieldInfo ctAgg)
Constructor. |
|
CTSpecialFldInfo(java.lang.String mapping,
int func,
java.lang.String label,
int breakBy,
int refer,
boolean isRowDirection,
int referIndex)
Constructor. |
|
| Method Summary | |
|---|---|
int |
getAggFunction()
Gets function type for the comparison function. |
int |
getBreakPosition()
Gets the first parameter of the comparison function. |
boolean |
getIsRowDirection()
Gets whether the function is calculated in row direction or not. |
java.lang.String |
getMappingName()
Gets mapping name of the aggregate field for the comparison function. |
int |
getReferPosition()
Gets the second parameter of the comparison function. |
void |
setAggFunction(int func)
Sets function type for the comparison function. |
void |
setBreakPosition(int breakBy)
Sets the first parameter of the comparison function. |
void |
setIsRowDirection(boolean isRowDirection)
Sets the function is calculated in row direction or column direction. |
void |
setMappingName(java.lang.String mapping)
Sets mapping name of the aggregate field for the special function. |
void |
setReferPosition(int referTo)
Sets the second parameter of the comparison function. |
java.lang.String |
toString()
|
| Methods inherited from class jet.api.CTAggFieldInfo |
|---|
createCTSpecialFldInfo, getAggregationType, getBlName, getCTFName, getType, setAggregationType, setBlName, setCTFName |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int PERCENTAGE
public static final int PERMILLAGE
public static final int DIFFERENCE
| Constructor Detail |
|---|
public CTSpecialFldInfo(java.lang.String mapping,
int func,
java.lang.String label,
int breakBy,
int refer,
boolean isRowDirection,
int referIndex)
mapping - The mapping name of the database field or formula.func - The int value of the comparison function type.label - The text title of the comparison function field.breakBy - Specifies the first parameter (aggregate or sub-total) of the comparison function, similar like numerator.
The number -1 means the aggregate is the first parameter; the number of the real order of the columns/rows means the inner group sub-total.refer - Specifies the second parameter (sub-total or grand-total) of the comparison function, similar like denominator.
The number -1 means the grand-total is the second parameter; the number, less than breakBy, of the real order of the columns/rows means the outer group sub-total.isRowDirection - If it is true, the comparison function field will be placed into the column's total cell of the crosstab;otherwise, the comparison function field will be placed into the row total cell of the crosstab.referIndex - The comparison function is defined based on the exist aggregate field in the crosstab, referIndex specifies the index of referred aggregate field in the list. The index starts from 0.
public CTSpecialFldInfo(java.lang.String mapping,
int func,
java.lang.String label,
int breakBy,
int refer,
boolean isRowDirection,
CTAggFieldInfo ctAgg)
mapping - The mapping name of the database field or formula.func - The int value of the comparison function type.label - The text title of the comparison function field.breakBy - Specifies the first parameter (aggregate or sub-total) of the comparison function, similar like numerator.
The number -1 means the aggregate is the first parameter; the number of the real order of the columns/rows means the inner group sub-total.refer - Specifies the second parameter (sub-total or grand-total) of the comparison function, similar like denominator.
The number -1 means the grand-total is the second parameter; the number, less than breakBy, of the real order of the columns/rows means the outer group sub-total.isRowDirection - If it is true, the comparison function field will be placed into the column's total cell of the crosstab;otherwise, the comparison function field will be placed into the row total cell of the crosstab.ctAgg - The comparison function is defined based on the exist aggregate field in the crosstab, ctAgg is the definition of referred aggregate field.| Method Detail |
|---|
public void setMappingName(java.lang.String mapping)
mapping - The mapping name of the aggregate field.public java.lang.String getMappingName()
public void setAggFunction(int func)
func - The int value of the comparison function type. its value must be one of PERCENTAGE,PERMILLAGE or DIFFERENCE.public int getAggFunction()
public void setBreakPosition(int breakBy)
breakBy - Specifies the first parameter (aggregate or sub-total) of the comparison function, similar like numerator.
The number -1 means the aggregate is the first parameter; the number of the real order of the columns/rows means the inner group sub-total.setReferPosition(int)public int getBreakPosition()
setBreakPosition(int)public void setReferPosition(int referTo)
refer - Specifies the second parameter (sub-total or grand-total) of the comparison function, similar like denominator.
The number -1 means the grand-total is the second parameter; the number, less than breakBy, of the real order of the columns/rows means the outer group sub-total.setBreakPosition(int)public int getReferPosition()
public void setIsRowDirection(boolean isRowDirection)
isRowDirection - If it is true, the comparison function field will be placed into the column's total cell of the crosstab;otherwise, the comparison function field will be placed into the row total cell of the crosstab.public boolean getIsRowDirection()
true if the function is calculated in row direction and placed in column's total cell; false otherwise.public java.lang.String toString()
toString in class CTAggFieldInfo
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||