Class JRBaseCrosstabBucket
java.lang.Object
net.sf.jasperreports.crosstabs.base.JRBaseCrosstabBucket
- All Implemented Interfaces:
Serializable
,Cloneable
,JRCrosstabBucket
,JRCloneable
- Direct Known Subclasses:
JRDesignCrosstabBucket
Base read-only implementation of
JRCrosstabBucket
.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BucketOrder
protected JRExpression
static final String
protected JRExpression
protected JRExpression
protected Class
<?> protected String
protected String
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
JRBaseCrosstabBucket
(JRCrosstabBucket bucket, JRBaseObjectFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionclone()
Returns the comparator expression.Returns the grouping expression.getOrder()
Returns the bucket sorting type.Returns an expression that provides order by values for group buckets.Class
<?> Returns the class of the bucket value.Returns the string name of the bucket value class.
-
Field Details
-
EXCEPTION_MESSAGE_KEY_BUCKET_LOAD_ERROR
- See Also:
-
valueClassName
-
valueClassRealName
-
valueClass
-
bucketOrder
-
expression
-
orderByExpression
-
comparatorExpression
-
-
Constructor Details
-
JRBaseCrosstabBucket
protected JRBaseCrosstabBucket() -
JRBaseCrosstabBucket
-
-
Method Details
-
getValueClassName
Description copied from interface:JRCrosstabBucket
Returns the string name of the bucket value class.- Specified by:
getValueClassName
in interfaceJRCrosstabBucket
-
getOrder
Description copied from interface:JRCrosstabBucket
Returns the bucket sorting type.The possible values are:
- Specified by:
getOrder
in interfaceJRCrosstabBucket
- Returns:
- the bucket sorting type
- See Also:
-
getExpression
Description copied from interface:JRCrosstabBucket
Returns the grouping expression.- Specified by:
getExpression
in interfaceJRCrosstabBucket
- Returns:
- the grouping expression
-
getOrderByExpression
Description copied from interface:JRCrosstabBucket
Returns an expression that provides order by values for group buckets. If not set, the bucket values as returned byJRCrosstabBucket.getExpression()
are used to order the buckets.The expression is evaluated in the context of the crosstab group and can reference measure variables, which evaluate to group totals.
- Specified by:
getOrderByExpression
in interfaceJRCrosstabBucket
- Returns:
- the order by value expression for the group bucket
-
getComparatorExpression
Description copied from interface:JRCrosstabBucket
Returns the comparator expression.The result of this expression is used to sort the buckets, in ascending or descending order (given by
getOrder()
. If the bucket has an order by expression, the comparator will be used to compare values as produced by that expression. If no comparator expression is specified, the natural order will be used.- Specified by:
getComparatorExpression
in interfaceJRCrosstabBucket
- Returns:
- the comparator expression
- See Also:
-
getValueClass
Description copied from interface:JRCrosstabBucket
Returns the class of the bucket value. Any class is allowed as long as it is in the classpath at compile and run time.- Specified by:
getValueClass
in interfaceJRCrosstabBucket
- Returns:
- a Class instance representing the bucket value class
-
clone
- Specified by:
clone
in interfaceJRCloneable
- Overrides:
clone
in classObject
-