| org.jfree.report.DataRow
All known Subclasses: org.jfree.report.states.datarow.StaticDataRow, org.jfree.report.data.ReportDataRow, org.jfree.report.states.datarow.FastGlobalView, org.jfree.report.states.DataRowConnector, org.jfree.report.data.StaticDataRow, org.jfree.report.data.ExpressionDataRow, org.jfree.report.data.GlobalView, org.jfree.report.modules.misc.bsf.DataRowWrapper,
DataRow | public interface DataRow extends DataSet(Code) | | This is the base interface for all data access collectors. A data-row adds a
certain order to the elements in the dataset. It also allows statefull
comparisions and data attributes using DataFlags.
The data-row is an internal concept of JFreeReport. The report engine will be
responsible for creating and maintaining these implementations. Authors of
functions and expressions usually dont have to care where a datarow comes
from or at which particular instance they are looking right now.
Note: Do not attempt to cache the datarow outside the core engine. This can
have funny sideeffects and might trigger the end of the world.
author: Thomas Morgner |
Method Summary | |
public Object | get(int col) Returns the value of the expression or column in the tablemodel using the
given column number as index. | public Object | get(String col) Returns the value of the function, expression or column using its specific
name. | public int | getColumnCount() Returns the number of columns, expressions and functions and marked
ReportProperties in the report. | public String | getColumnName(int col) Returns the name of the column, expression or function. | public DataFlags | getFlags(String col) Queries lowlevel meta-data for the current value of the specified column. | public DataFlags | getFlags(int col) Queries lowlevel meta-data for the current value of the specified column. |
get | public Object get(int col) throws DataSourceException(Code) | | Returns the value of the expression or column in the tablemodel using the
given column number as index. For functions and expressions, the
getValue() method is called and for columns from the
tablemodel the tablemodel method getValueAt(row, column) gets
called.
Parameters: col - the item index. the value. throws: IllegalStateException - if the datarow detected a deadlock. throws: DataSourceException - if an error occured. |
get | public Object get(String col) throws DataSourceException(Code) | | 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.
Parameters: col - the item index. the value. throws: IllegalStateException - if the datarow detected a deadlock. throws: DataSourceException - if an error occured. |
getColumnCount | public int getColumnCount() throws DataSourceException(Code) | | Returns the number of columns, expressions and functions and marked
ReportProperties in the report.
the item count. throws: DataSourceException - if an error occured. |
getColumnName | public String getColumnName(int col) throws DataSourceException(Code) | | Returns the name of the column, expression or function. For columns from
the tablemodel, the tablemodels getColumnName method is
called. For functions, expressions and report properties the assigned name
is returned.
Parameters: col - the item index. the name. throws: DataSourceException - if an error occured. |
getFlags | public DataFlags getFlags(String col) throws DataSourceException(Code) | | Queries lowlevel meta-data for the current value of the specified column.
Parameters: col - the colum for which to query the meta-data flags the dataflag collection for the value in the named column throws: DataSourceException - if an error occured. |
getFlags | public DataFlags getFlags(int col) throws DataSourceException(Code) | | Queries lowlevel meta-data for the current value of the specified column.
Parameters: col - the colum for which to query the meta-data flags the dataflag collection for the value in the specified column throws: DataSourceException - if an error occured. |
|
|