Package org.jfree.report.data
Class ReportDataRow
- java.lang.Object
-
- org.jfree.report.data.ReportDataRow
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, java.lang.String query, DataSet parameters)
java.lang.Object
get(int col)
Returns the value of the expression or column in the tablemodel using the given column number as index.java.lang.Object
get(java.lang.String col)
Returns the value of the function, expression or column using its specific name.int
getColumnCount()
Returns the number of columns, expressions and functions and marked ReportProperties in the report.java.lang.String
getColumnName(int col)
Returns the name of the column, expression or function.int
getCursor()
DataFlags
getFlags(int col)
Queries lowlevel meta-data for the current value of the specified column.DataFlags
getFlags(java.lang.String col)
Queries lowlevel meta-data for the current value of the specified column.ReportData
getReportData()
boolean
isAdvanceable()
-
-
-
Method Detail
-
createDataRow
public static ReportDataRow createDataRow(ReportDataFactory dataFactory, java.lang.String query, DataSet parameters) throws DataSourceException, ReportDataFactoryException
-
get
public java.lang.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, thegetValue()
method is called and for columns from the tablemodel the tablemodel methodgetValueAt(row, column)
gets called.- Specified by:
get
in interfaceDataRow
- Specified by:
get
in interfaceDataSet
- Parameters:
col
- the item index.- Returns:
- the value.
- Throws:
java.lang.IllegalStateException
- if the datarow detected a deadlock.DataSourceException
- if an error occured.
-
get
public java.lang.Object get(java.lang.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, thegetValue()
method is called and for columns from the tablemodel the tablemodel methodgetValueAt(row, column)
gets called.- Specified by:
get
in interfaceDataRow
- Parameters:
col
- the item index.- Returns:
- the value.
- Throws:
java.lang.IllegalStateException
- if the datarow detected a deadlock.DataSourceException
- if an error occured.
-
getColumnName
public java.lang.String getColumnName(int col)
Returns the name of the column, expression or function. For columns from the tablemodel, the tablemodelsgetColumnName
method is called. For functions, expressions and report properties the assigned name is returned.- Specified by:
getColumnName
in interfaceDataRow
- Specified by:
getColumnName
in 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:
getColumnCount
in interfaceDataRow
- Specified by:
getColumnCount
in interfaceDataSet
- Returns:
- the item count.
-
getFlags
public DataFlags getFlags(java.lang.String col) throws DataSourceException
Description copied from interface:DataRow
Queries lowlevel meta-data for the current value of the specified column.- Specified by:
getFlags
in 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
public DataFlags getFlags(int col)
Description copied from interface:DataRow
Queries lowlevel meta-data for the current value of the specified column.
-
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:
master
-- Returns:
- Throws:
DataSourceException
-
isAdvanceable
public boolean isAdvanceable() throws DataSourceException
- Throws:
DataSourceException
-
getReportData
public ReportData getReportData()
-
getCursor
public int getCursor()
-
-