org.pentaho.reporting.engine.classic.core.states.datarow
Class FastGlobalView

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.states.datarow.FastGlobalView
All Implemented Interfaces:
DataRow

public final class FastGlobalView
extends Object
implements DataRow

Creation-Date: 10.08.2007, 14:07:32

Author:
Thomas Morgner

Constructor Summary
FastGlobalView()
           
FastGlobalView(FastGlobalView parent)
           
 
Method Summary
 FastGlobalView advance()
           
 FastGlobalView derive()
           
 Object get(String col)
          Returns the value of the function, expression or column using its specific name.
 String[] getColumnNames()
          Returns the known column names, this data-row understands.
 boolean isChanged(String name)
          Checks whether the value contained in the column has changed since the last advance-operation.
 void putField(String name, Object value, boolean update)
           
 void removeColumn(String name)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FastGlobalView

public FastGlobalView(FastGlobalView parent)

FastGlobalView

public FastGlobalView()
Method Detail

getColumnNames

public String[] getColumnNames()
Description copied from interface: DataRow
Returns the known column names, this data-row understands. The column names may change over time but do not change while a event is processed by a function. The array returned is a copy of the internal data-storage and can be safely modified.

Specified by:
getColumnNames in interface DataRow
Returns:
the column names as array.

get

public Object get(String col)
           throws IllegalStateException
Description copied from interface: DataRow
Returns the value of the function, expression or column using its specific name. The given name is translated into a valid column number and the the column is queried. For functions and expressions, the getValue() method is called and for columns from the tablemodel the tablemodel method getValueAt(row, column) gets called.

Specified by:
get in interface DataRow
Parameters:
col - the item index.
Returns:
the value.
Throws:
IllegalStateException

isChanged

public boolean isChanged(String name)
Description copied from interface: DataRow
Checks whether the value contained in the column has changed since the last advance-operation.

Specified by:
isChanged in interface DataRow
Parameters:
name - the name of the column.
Returns:
true, if the value has changed, false otherwise.

derive

public FastGlobalView derive()

advance

public FastGlobalView advance()

removeColumn

public void removeColumn(String name)

putField

public void putField(String name,
                     Object value,
                     boolean update)