org.pentaho.reporting.engine.classic.core.function
Class ColumnDivisionExpression

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.function.AbstractExpression
      extended by org.pentaho.reporting.engine.classic.core.function.ColumnAggregationExpression
          extended by org.pentaho.reporting.engine.classic.core.function.ColumnDivisionExpression
All Implemented Interfaces:
Serializable, Cloneable, Expression

Deprecated. Use a formula

public class ColumnDivisionExpression
extends ColumnAggregationExpression

Divides 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
ColumnDivisionExpression()
          Deprecated. Default constructor.
 
Method Summary
 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, 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColumnDivisionExpression

public ColumnDivisionExpression()
Deprecated. 
Default constructor.

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.