org.jfree.report.data

Class ReportDataRow

public final class ReportDataRow extends Object implements DataRow

Creation-Date: 20.02.2006, 15:32:32

Author: Thomas Morgner

Method Summary
ReportDataRowadvance()
Advances to the next row and attaches the given master row to the objects contained in that client data row.
static ReportDataRowcreateDataRow(ReportDataFactory dataFactory, String query, DataSet parameters)
Objectget(int col)
Returns the value of the expression or column in the tablemodel using the given column number as index.
Objectget(String col)
Returns the value of the function, expression or column using its specific name.
intgetColumnCount()
Returns the number of columns, expressions and functions and marked ReportProperties in the report.
StringgetColumnName(int col)
Returns the name of the column, expression or function.
intgetCursor()
DataFlagsgetFlags(String col)
DataFlagsgetFlags(int col)
ReportDatagetReportData()
booleanisAdvanceable()

Method Detail

advance

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

Parameters: master

Returns:

createDataRow

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

get

public Object get(int col)
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.

Returns: the value.

Throws: IllegalStateException if the datarow detected a deadlock.

get

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

Returns: the value.

Throws: IllegalStateException if the datarow detected a deadlock.

getColumnCount

public int getColumnCount()
Returns the number of columns, expressions and functions and marked ReportProperties in the report.

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.

Parameters: col the item index.

Returns: the name.

getCursor

public int getCursor()

getFlags

public DataFlags getFlags(String col)

getFlags

public DataFlags getFlags(int col)

getReportData

public ReportData getReportData()

isAdvanceable

public boolean isAdvanceable()