public class JRBaseCrosstabBucket extends java.lang.Object implements JRCrosstabBucket, java.io.Serializable
JRCrosstabBucket.| Modifier and Type | Field and Description |
|---|---|
protected JRExpression |
comparatorExpression |
protected JRExpression |
expression |
protected JRExpression |
orderByExpression |
protected SortOrderEnum |
orderValue |
| Modifier | Constructor and Description |
|---|---|
protected |
JRBaseCrosstabBucket() |
|
JRBaseCrosstabBucket(JRCrosstabBucket bucket,
JRBaseObjectFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
JRExpression |
getComparatorExpression()
Returns the comparator expression.
|
JRExpression |
getExpression()
Returns the grouping expression.
|
byte |
getOrder()
Deprecated.
Replaced by
getOrderValue(). |
JRExpression |
getOrderByExpression()
Returns an expression that provides order by values for group buckets.
|
SortOrderEnum |
getOrderValue()
Returns the bucket sorting type.
|
protected SortOrderEnum orderValue
protected JRExpression expression
protected JRExpression orderByExpression
protected JRExpression comparatorExpression
protected JRBaseCrosstabBucket()
public JRBaseCrosstabBucket(JRCrosstabBucket bucket, JRBaseObjectFactory factory)
public byte getOrder()
getOrderValue().getOrder in interface JRCrosstabBucketpublic SortOrderEnum getOrderValue()
JRCrosstabBucketThe possible values are:
getOrderValue in interface JRCrosstabBucketpublic JRExpression getExpression()
JRCrosstabBucketgetExpression in interface JRCrosstabBucketpublic JRExpression getOrderByExpression()
JRCrosstabBucketJRCrosstabBucket.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 JRCrosstabBucketpublic JRExpression getComparatorExpression()
JRCrosstabBucket
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.
getComparatorExpression in interface JRCrosstabBucketJRCrosstabBucket.getOrderByExpression()public java.lang.Object clone()
clone in interface JRCloneableclone in class java.lang.Object© 2001-2010 Jaspersoft Corporation www.jaspersoft.com