Package org.jfree.report.data
Class ReportDataRow
java.lang.Object
org.jfree.report.data.ReportDataRow
Creation-Date: 20.02.2006, 15:32:32
- Author:
- Thomas Morgner
-
Method Summary
Modifier and TypeMethodDescriptionadvance()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) get(int col) Returns the value of the expression or column in the tablemodel using the given column number as index.Returns the value of the function, expression or column using its specific name.intReturns the number of columns, expressions and functions and marked ReportProperties in the report.getColumnName(int col) Returns the name of the column, expression or function.intgetFlags(int col) Queries lowlevel meta-data for the current value of the specified column.Queries lowlevel meta-data for the current value of the specified column.boolean
-
Method Details
-
createDataRow
public static ReportDataRow createDataRow(ReportDataFactory dataFactory, String query, DataSet parameters) throws DataSourceException, ReportDataFactoryException -
get
Returns the value of the expression or column in the tablemodel using the given column number as index. For functions and expressions, thegetValue()method is called and for columns from the tablemodel the tablemodel methodgetValueAt(row, column)gets called.- Specified by:
getin interfaceDataRow- Specified by:
getin interfaceDataSet- Parameters:
col- the item index.- Returns:
- the value.
- Throws:
IllegalStateException- if the datarow detected a deadlock.DataSourceException- if an error occured.
-
get
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, thegetValue()method is called and for columns from the tablemodel the tablemodel methodgetValueAt(row, column)gets called.- Specified by:
getin interfaceDataRow- Parameters:
col- the item index.- Returns:
- the value.
- Throws:
IllegalStateException- if the datarow detected a deadlock.DataSourceException- if an error occured.
-
getColumnName
Returns the name of the column, expression or function. For columns from the tablemodel, the tablemodelsgetColumnNamemethod is called. For functions, expressions and report properties the assigned name is returned.- Specified by:
getColumnNamein interfaceDataRow- Specified by:
getColumnNamein interfaceDataSet- Parameters:
col- the item index.- Returns:
- the name.
-
getColumnCount
public int getColumnCount()Returns the number of columns, expressions and functions and marked ReportProperties in the report.- Specified by:
getColumnCountin interfaceDataRow- Specified by:
getColumnCountin interfaceDataSet- Returns:
- the item count.
-
getFlags
Description copied from interface:DataRowQueries lowlevel meta-data for the current value of the specified column.- Specified by:
getFlagsin interfaceDataRow- Parameters:
col- the colum for which to query the meta-data flags- Returns:
- the dataflag collection for the value in the named column
- Throws:
DataSourceException- if an error occured.
-
getFlags
Description copied from interface:DataRowQueries lowlevel meta-data for the current value of the specified column. -
advance
Advances to the next row and attaches the given master row to the objects contained in that client data row.- Parameters:
master-- Returns:
- Throws:
DataSourceException
-
isAdvanceable
- Throws:
DataSourceException
-
getReportData
-
getCursor
public int getCursor()
-