public class CTAggFieldInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
AVERAGE
The function type values.
|
static int |
COUNT
The function type values.
|
static int |
DISTINCTCOUNT
The function type values.
|
static int |
DISTINCTSUM
The function type values.
|
static int |
MAXIMUM
The function type values.
|
static int |
MINIMUM
The function type values.
|
static int |
POPULATIONSTDDEV
The function type values.
|
static int |
POPULATIONVARIANCE
The function type values.
|
static int |
RUNNING_AVERAGE
The function type values.
|
static int |
RUNNING_COUNT
The function type values.
|
static int |
RUNNING_DISTINCTCOUNT
The function type values.SUM
|
static int |
RUNNING_MAXIMUM
The function type values.
|
static int |
RUNNING_MINIMUM
The function type values.
|
static int |
RUNNING_SUM
The function type values.
|
static int |
SQRSUM
The function type values.
|
static int |
STDDEV
The function type values.
|
static int |
SUM
The function type values.
|
static int |
USE_AGGREGATION
The Aggregation type value.
|
static int |
USE_CTF
The Aggregation type value.
|
static int |
USE_FIELDNAME_FUNCTION
The Aggregation type value.
|
static int |
VARIANCE
The function type values.
|
Constructor and Description |
---|
CTAggFieldInfo(java.lang.String name,
java.lang.String mapping,
int func)
Constructor.
|
CTAggFieldInfo(java.lang.String name,
java.lang.String mapping,
int func,
int index)
Constructor.
|
CTAggFieldInfo(java.lang.String name,
java.lang.String mapping,
int func,
int index,
java.lang.String label)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
CTSpecialFldInfo |
createCTSpecialFldInfo(java.lang.String label,
int breakBy,
int refer,
int function,
boolean isRowDirection)
Creates a related comparison aggregate field's information.
|
int |
getAggregationType()
Gets the aggregate field's type.
|
java.lang.String |
getBlName()
Gets the BC/RC name or the BusinessView name of the aggregate field.
|
java.lang.String |
getCTFName()
Gets the crossstab formula name of the aggregate field.
|
java.util.Vector<java.lang.String> |
getDistinctOn() |
static int |
getType(java.lang.String typeN)
Gets the int value of the function context.
|
void |
setAggregationType(int aggType)
Sets the aggregate field's type.
|
void |
setBlName(java.lang.String blName)
Sets the BC/RC name or the BusinessView name of the aggregate field.
|
void |
setCTFName(java.lang.String ctfName)
Sets the crossstab formula name of the aggregate field.
|
void |
setDistinctOn(java.util.Vector<java.lang.String> distinctOn) |
java.lang.String |
toString() |
public static final int COUNT
public static final int SUM
public static final int MINIMUM
public static final int MAXIMUM
public static final int DISTINCTCOUNT
public static final int AVERAGE
public static final int SQRSUM
public static final int POPULATIONSTDDEV
public static final int POPULATIONVARIANCE
public static final int STDDEV
public static final int VARIANCE
public static final int RUNNING_COUNT
public static final int RUNNING_SUM
public static final int RUNNING_MINIMUM
public static final int RUNNING_MAXIMUM
public static final int RUNNING_DISTINCTCOUNT
public static final int RUNNING_AVERAGE
public static final int DISTINCTSUM
public static final int USE_FIELDNAME_FUNCTION
public static final int USE_AGGREGATION
public static final int USE_CTF
public CTAggFieldInfo(java.lang.String name, java.lang.String mapping, int func)
name
- The instance name of the aggregate field in the crosstab.mapping
- The mapping name of the database field or formula.func
- The int value of the aggregate function type.public CTAggFieldInfo(java.lang.String name, java.lang.String mapping, int func, int index)
name
- The instance name of the aggregate field in the crosstab.mapping
- The mapping name of the database field or formula.func
- The int value of the aggregate function type.index
- The position of aggregate field in the crosstab. It is useless in fact since Logi Report arrange aggregate fields according to the aggregate list in the crosstab.public CTAggFieldInfo(java.lang.String name, java.lang.String mapping, int func, int index, java.lang.String label)
name
- The instance name of the aggregate field in the crosstab.mapping
- The mapping name of the database field or formula.func
- The int value of the aggregate function type.index
- The position of aggregate field in the crosstab. It is useless in fact since Logi Report arrange aggregate fields according to the aggregate list in the crosstab.label
- The text title of the aggregate field.public static int getType(java.lang.String typeN)
typeN
- The string description of the aggregate function.public void setBlName(java.lang.String blName)
blName
- The BC/RC name or the BusinessView name of the aggregate field.public java.lang.String getBlName()
public void setCTFName(java.lang.String ctfName)
ctfName
- The crossstab formula name of the aggregate field.public java.lang.String getCTFName()
public void setAggregationType(int aggType)
aggType
- the aggregate field's type. See also USE_FIELDNAME_FUNCTION
, USE_CTF
}.public int getAggregationType()
USE_FIELDNAME_FUNCTION
, USE_CTF
}.public java.util.Vector<java.lang.String> getDistinctOn()
public void setDistinctOn(java.util.Vector<java.lang.String> distinctOn)
public CTSpecialFldInfo createCTSpecialFldInfo(java.lang.String label, int breakBy, int refer, int function, boolean isRowDirection)
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.function
- The int value of the comparison function type.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 java.lang.String toString()
toString
in class java.lang.Object