|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JRVariable
An interface for implementing classes that deal with report variables. This interface defines constants for names of built-in variables and for reset, increment and calculation types.
When declaring a report group, the engine will automatically create a count variable that will calculate the number of records that make up the current group (number of records processed between group ruptures). The name for this variable comes from the name of the group it corresponds to, suffixed with the "_COUNT" sequence. It can be used like any other report variable, in any report expression (even in the current group expression like you can see done in the "BreakGroup" of the jasper sample).
Field Summary | |
---|---|
static byte |
CALCULATION_AVERAGE
Deprecated. Replaced by CalculationEnum.AVERAGE . |
static byte |
CALCULATION_COUNT
Deprecated. Replaced by CalculationEnum.COUNT . |
static byte |
CALCULATION_DISTINCT_COUNT
Deprecated. Replaced by CalculationEnum.DISTINCT_COUNT . |
static byte |
CALCULATION_FIRST
Deprecated. Replaced by CalculationEnum.FIRST . |
static byte |
CALCULATION_HIGHEST
Deprecated. Replaced by CalculationEnum.HIGHEST . |
static byte |
CALCULATION_LOWEST
Deprecated. Replaced by CalculationEnum.LOWEST . |
static byte |
CALCULATION_NOTHING
Deprecated. Replaced by CalculationEnum.NOTHING . |
static byte |
CALCULATION_STANDARD_DEVIATION
Deprecated. Replaced by CalculationEnum.STANDARD_DEVIATION . |
static byte |
CALCULATION_SUM
Deprecated. Replaced by CalculationEnum.SUM . |
static byte |
CALCULATION_SYSTEM
Deprecated. Replaced by CalculationEnum.SYSTEM . |
static byte |
CALCULATION_VARIANCE
Deprecated. Replaced by CalculationEnum.VARIANCE . |
static java.lang.String |
COLUMN_COUNT
This variable contains the number of records that were processed when generating the current column. |
static java.lang.String |
COLUMN_NUMBER
Built-in variable containing the current column number. |
static java.lang.String |
PAGE_COUNT
Built-in variable containing the number of records that were processed when generating the current page. |
static java.lang.String |
PAGE_NUMBER
Built-in variable containing the current page number. |
static java.lang.String |
REPORT_COUNT
Built-in variable that contains the total number of records read from the datasource. |
static byte |
RESET_TYPE_COLUMN
Deprecated. Replaced by ResetTypeEnum.COLUMN . |
static byte |
RESET_TYPE_GROUP
Deprecated. Replaced by ResetTypeEnum.GROUP . |
static byte |
RESET_TYPE_NONE
Deprecated. Replaced by ResetTypeEnum.NONE . |
static byte |
RESET_TYPE_PAGE
Deprecated. Replaced by ResetTypeEnum.PAGE . |
static byte |
RESET_TYPE_REPORT
Deprecated. Replaced by ResetTypeEnum.REPORT . |
Method Summary | |
---|---|
byte |
getCalculation()
Deprecated. Replaced by getCalculationValue() . |
CalculationEnum |
getCalculationValue()
Gets the variable calculation type. |
JRExpression |
getExpression()
Returns the main expression for this variable. |
java.lang.Class |
getIncrementerFactoryClass()
Returns the class of the incrementer factory used for choosing the right incrementer for the variable value. |
java.lang.String |
getIncrementerFactoryClassName()
Returns the string name of the variable value class. |
JRGroup |
getIncrementGroup()
Returns the group whose break triggers the variable increment. |
byte |
getIncrementType()
Deprecated. Replaced by getIncrementTypeValue() . |
IncrementTypeEnum |
getIncrementTypeValue()
Gets the variable increment type. |
JRExpression |
getInitialValueExpression()
Returns the initial value expression for this variable. |
java.lang.String |
getName()
Returns the name of the variable. |
JRGroup |
getResetGroup()
Returns the group whose break triggers the variable reset. |
byte |
getResetType()
Deprecated. Replaced by getResetTypeValue() . |
ResetTypeEnum |
getResetTypeValue()
Gets the variable reset type. |
java.lang.Class |
getValueClass()
Returns the class of the variable value. |
java.lang.String |
getValueClassName()
Returns the string name of the variable value class. |
boolean |
isSystemDefined()
Returns true if the variable calculation type is system defined. |
Methods inherited from interface net.sf.jasperreports.engine.JRCloneable |
---|
clone |
Field Detail |
---|
static final java.lang.String REPORT_COUNT
static final java.lang.String PAGE_COUNT
static final java.lang.String COLUMN_COUNT
static final java.lang.String PAGE_NUMBER
static final java.lang.String COLUMN_NUMBER
static final byte RESET_TYPE_REPORT
ResetTypeEnum.REPORT
.static final byte RESET_TYPE_PAGE
ResetTypeEnum.PAGE
.static final byte RESET_TYPE_COLUMN
ResetTypeEnum.COLUMN
.static final byte RESET_TYPE_GROUP
ResetTypeEnum.GROUP
.static final byte RESET_TYPE_NONE
ResetTypeEnum.NONE
.static final byte CALCULATION_NOTHING
CalculationEnum.NOTHING
.static final byte CALCULATION_COUNT
CalculationEnum.COUNT
.static final byte CALCULATION_SUM
CalculationEnum.SUM
.static final byte CALCULATION_AVERAGE
CalculationEnum.AVERAGE
.static final byte CALCULATION_LOWEST
CalculationEnum.LOWEST
.static final byte CALCULATION_HIGHEST
CalculationEnum.HIGHEST
.static final byte CALCULATION_STANDARD_DEVIATION
CalculationEnum.STANDARD_DEVIATION
.static final byte CALCULATION_VARIANCE
CalculationEnum.VARIANCE
.static final byte CALCULATION_SYSTEM
CalculationEnum.SYSTEM
.static final byte CALCULATION_FIRST
CalculationEnum.FIRST
.static final byte CALCULATION_DISTINCT_COUNT
CalculationEnum.DISTINCT_COUNT
.Method Detail |
---|
java.lang.String getName()
java.lang.Class getValueClass()
java.lang.String getValueClassName()
java.lang.Class getIncrementerFactoryClass()
JRIncrementer
,
JRIncrementerFactory
java.lang.String getIncrementerFactoryClassName()
byte getResetType()
getResetTypeValue()
.
byte getIncrementType()
getIncrementTypeValue()
.
ResetTypeEnum getResetTypeValue()
ResetTypeEnum
IncrementTypeEnum getIncrementTypeValue()
IncrementTypeEnum
byte getCalculation()
getCalculationValue()
.
CalculationEnum getCalculationValue()
CalculationEnum
boolean isSystemDefined()
true
if the variable calculation type is system defined.
CALCULATION_SYSTEM
JRExpression getExpression()
JRExpression
instance containing the expression.JRExpression getInitialValueExpression()
JRExpression
instance containing the initial expression.JRGroup getResetGroup()
getResetType()
returns
RESET_TYPE_GROUP
.
JRGroup getIncrementGroup()
getIncrementType()
returns
RESET_TYPE_GROUP
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |