public class JRBaseCrosstabBucket extends Object implements JRCrosstabBucket, Serializable
JRCrosstabBucket
.Modifier and Type | Field and Description |
---|---|
protected BucketOrder |
bucketOrder |
protected JRExpression |
comparatorExpression |
static String |
EXCEPTION_MESSAGE_KEY_BUCKET_LOAD_ERROR |
protected JRExpression |
expression |
protected JRExpression |
orderByExpression |
protected SortOrderEnum |
orderValue
Deprecated.
|
protected Class<?> |
valueClass |
protected String |
valueClassName |
protected String |
valueClassRealName |
Modifier | Constructor and Description |
---|---|
protected |
JRBaseCrosstabBucket() |
|
JRBaseCrosstabBucket(JRCrosstabBucket bucket,
JRBaseObjectFactory factory) |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
JRExpression |
getComparatorExpression()
Returns the comparator expression.
|
JRExpression |
getExpression()
Returns the grouping expression.
|
BucketOrder |
getOrder()
Returns the bucket sorting type.
|
JRExpression |
getOrderByExpression()
Returns an expression that provides order by values for group buckets.
|
SortOrderEnum |
getOrderValue()
Deprecated.
|
Class<?> |
getValueClass()
Returns the class of the bucket value.
|
String |
getValueClassName()
Returns the string name of the bucket value class.
|
public static final String EXCEPTION_MESSAGE_KEY_BUCKET_LOAD_ERROR
protected String valueClassName
protected String valueClassRealName
protected Class<?> valueClass
@Deprecated protected SortOrderEnum orderValue
protected BucketOrder bucketOrder
protected JRExpression expression
protected JRExpression orderByExpression
protected JRExpression comparatorExpression
protected JRBaseCrosstabBucket()
public JRBaseCrosstabBucket(JRCrosstabBucket bucket, JRBaseObjectFactory factory)
public String getValueClassName()
JRCrosstabBucket
getValueClassName
in interface JRCrosstabBucket
@Deprecated public SortOrderEnum getOrderValue()
JRCrosstabBucket
The possible values are:
getOrderValue
in interface JRCrosstabBucket
public BucketOrder getOrder()
JRCrosstabBucket
The possible values are:
getOrder
in interface JRCrosstabBucket
JRCrosstabBucket.getComparatorExpression()
public JRExpression getExpression()
JRCrosstabBucket
getExpression
in interface JRCrosstabBucket
public JRExpression getOrderByExpression()
JRCrosstabBucket
JRCrosstabBucket.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.
getOrderByExpression
in interface JRCrosstabBucket
public JRExpression getComparatorExpression()
JRCrosstabBucket
The result of this expression is used to sort the buckets, in ascending or
descending order (given by getOrderValue()
.
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.
getComparatorExpression
in interface JRCrosstabBucket
JRCrosstabBucket.getOrderByExpression()
public Class<?> getValueClass()
JRCrosstabBucket
getValueClass
in interface JRCrosstabBucket
public Object clone()
clone
in interface JRCloneable
clone
in class Object
Copyright © 2017. All rights reserved.