org.jfree.report.data

Class ReportDataRow

Implemented Interfaces:
DataRow, DataSet

public final class ReportDataRow
extends java.lang.Object
implements DataRow

Creation-Date: 20.02.2006, 15:32:32
Author:
Thomas Morgner

Method Summary

ReportDataRow
advance()
Advances to the next row and attaches the given master row to the objects contained in that client data row.
static ReportDataRow
createDataRow(ReportDataFactory dataFactory, String query, DataSet parameters)
Object
get(String col)
Returns the value of the function, expression or column using its specific name.
Object
get(int col)
Returns the value of the expression or column in the tablemodel using the given column number as index.
int
getColumnCount()
Returns the number of columns, expressions and functions and marked ReportProperties in the report.
String
getColumnName(int col)
Returns the name of the column, expression or function.
int
getCursor()
DataFlags
getFlags(String col)
DataFlags
getFlags(int col)
ReportData
getReportData()
boolean
isAdvanceable()

Method Details

advance

public ReportDataRow advance()
            throws DataSourceException
Advances to the next row and attaches the given master row to the objects contained in that client data row.
Parameters:
Returns:

createDataRow

public static ReportDataRow createDataRow(ReportDataFactory dataFactory,
                                          String query,
                                          DataSet parameters)
            throws DataSourceException,
                   ReportDataFactoryException

get

public Object get(String col)
            throws DataSourceException
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.

get

public Object get(int col)
            throws DataSourceException
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.
Specified by:
get in interface DataRow
get in interface DataSet
Parameters:
col - the item index.
Returns:
the value.

getColumnCount

public int getColumnCount()
Returns the number of columns, expressions and functions and marked ReportProperties in the report.
Specified by:
getColumnCount in interface DataRow
getColumnCount in interface DataSet
Returns:
the item count.

getColumnName

public String getColumnName(int col)
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.
Specified by:
getColumnName in interface DataRow
getColumnName in interface DataSet
Parameters:
col - the item index.
Returns:
the name.

getCursor

public int getCursor()

getFlags

public DataFlags getFlags(String col)
            throws DataSourceException
Specified by:
getFlags in interface DataRow

getFlags

public DataFlags getFlags(int col)
Specified by:
getFlags in interface DataRow

getReportData

public ReportData getReportData()

isAdvanceable

public boolean isAdvanceable()
            throws DataSourceException