com.businessobjects.rebean.wi
Class Calculation

java.lang.Object
  extended by com.businessobjects.rebean.wi.Calculation
All Implemented Interfaces:
java.io.Serializable

public final class Calculation
extends java.lang.Object
implements java.io.Serializable

Warning: This class is no longer functional from the SAP BusinessObjects 4.0 release onwards.

Represents all possible calculations.

See Also:
BlockCalculation.createCalculationElement(ReportExpression, Calculation), CalculationElement, Serialized Form

Field Summary
static int _AVERAGE
          int value of AVERAGE.value().
static int _COUNT
          int value of COUNT.value().
static int _MAX
          int value of MAX.value().
static int _MIN
          int value of MIN.value().
static int _PERCENT
          int value of PERCENT.value().
static int _SUM
          int value of SUM.value().
static int _TOTAL
          int value of TOTAL.value().
static Calculation AVERAGE
          Represents the average of all values.
static Calculation COUNT
          Represents a count of elements.
static Calculation MAX
          Represents the maximum of all values.
static Calculation MIN
          Represents the minimum of all values.
static Calculation PERCENT
          Represents the percentage of all values.
static Calculation SUM
          Represents the sum of all values.
static Calculation TOTAL
          Represents the total of all values.
 
Method Summary
static Calculation fromInt(int value)
          Return an Calculation instance corresponding to value, or null when value does not correspond to any Calculation
 java.lang.String toString()
          Return a String representation of this calculation (for debug purposes)
 int value()
          Return the int value of this calculation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_COUNT

public static final int _COUNT
int value of COUNT.value().

See Also:
Constant Field Values

_MIN

public static final int _MIN
int value of MIN.value().

See Also:
Constant Field Values

_MAX

public static final int _MAX
int value of MAX.value().

See Also:
Constant Field Values

_SUM

public static final int _SUM
int value of SUM.value().

See Also:
Constant Field Values

_PERCENT

public static final int _PERCENT
int value of PERCENT.value().

See Also:
Constant Field Values

_AVERAGE

public static final int _AVERAGE
int value of AVERAGE.value().

See Also:
Constant Field Values

_TOTAL

public static final int _TOTAL
int value of TOTAL.value().

Since:
12.0
See Also:
Constant Field Values

COUNT

public static final Calculation COUNT
Represents a count of elements. Can be applied on expressions of any ObjectType.


MIN

public static final Calculation MIN
Represents the minimum of all values. Can be applied on expressions of any ObjectType.


MAX

public static final Calculation MAX
Represents the maximum of all values. Can be applied on expressions of any ObjectType.


SUM

public static final Calculation SUM
Represents the sum of all values. Can be applied on expressions of ObjectType.NUMERIC only.


PERCENT

public static final Calculation PERCENT
Represents the percentage of all values. Can be applied on expressions of ObjectType.NUMERIC only.


AVERAGE

public static final Calculation AVERAGE
Represents the average of all values. Can be applied on expressions of ObjectType.NUMERIC or ObjectType.DATE.


TOTAL

public static final Calculation TOTAL
Represents the total of all values. This will be represented in the report as a simple =[Object] and therefore will use whatever aggregation method has been set for the object.

Can be applied to expressions of ObjectQualification.MEASURE only.

Since:
12.0
Method Detail

value

public int value()
Return the int value of this calculation

Returns:
the int value of this calculation

toString

public java.lang.String toString()
Return a String representation of this calculation (for debug purposes)

Overrides:
toString in class java.lang.Object
Returns:
a String representation of this calculation (for debug purposes)

fromInt

public static Calculation fromInt(int value)
Return an Calculation instance corresponding to value, or null when value does not correspond to any Calculation

Returns:
an Calculation instance corresponding to value, or null when value does not correspond to any Calculation