Class ColumnDivisionExpression
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.function.AbstractExpression
-
- org.pentaho.reporting.engine.classic.core.function.ColumnAggregationExpression
-
- org.pentaho.reporting.engine.classic.core.function.ColumnDivisionExpression
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Expression
public class ColumnDivisionExpression extends ColumnAggregationExpression
Deprecated.Use a formulaDivides all values read from the field-list. This is almost the same as the formula[field1] / [field2] / field[3] / .. / [fieldn]
. Values that are non-numeric or null are ignored.- Author:
- Thomas Morgner
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ColumnDivisionExpression()
Deprecated.Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
getRoundingMode()
Deprecated.Returns the defined rounding mode.int
getScale()
Deprecated.Returns the scale for the divide-operation.Object
getValue()
Deprecated.Return the current expression value.void
setRoundingMode(int roundingMode)
Deprecated.Defines the rounding mode.void
setScale(int scale)
Deprecated.Defines the scale for the divide-operation.-
Methods inherited from class org.pentaho.reporting.engine.classic.core.function.ColumnAggregationExpression
getField, getField, getFieldCount, getFieldValues, getInstance, setField, setField
-
Methods inherited from class org.pentaho.reporting.engine.classic.core.function.AbstractExpression
clone, getDataRow, getDependencyLevel, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setActive, setDependencyLevel, setName, setPreserve, setRuntime
-
-
-
-
Method Detail
-
getRoundingMode
public int getRoundingMode()
Deprecated.Returns the defined rounding mode. This influences the precision of the divide-operation.- Returns:
- the rounding mode.
- See Also:
BigDecimal.divide(java.math.BigDecimal, int)
-
setRoundingMode
public void setRoundingMode(int roundingMode)
Deprecated.Defines the rounding mode. This influences the precision of the divide-operation.- Parameters:
roundingMode
- the rounding mode.- See Also:
BigDecimal.divide(java.math.BigDecimal, int)
-
getScale
public int getScale()
Deprecated.Returns the scale for the divide-operation. The scale influences the precision of the division.- Returns:
- the scale.
-
setScale
public void setScale(int scale)
Deprecated.Defines the scale for the divide-operation. The scale influences the precision of the division.- Parameters:
scale
- the scale.
-
getValue
public Object getValue()
Deprecated.Return the current expression value.- Returns:
- the value of the function.
-
-