|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataRow
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.
Method Summary | |
---|---|
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. |
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. |
Method Detail |
---|
java.lang.Object get(int col) throws DataSourceException
getValue()
method is called and for columns from the
tablemodel the tablemodel method getValueAt(row, column)
gets
called.
get
in interface DataSet
col
- the item index.
java.lang.IllegalStateException
- if the datarow detected a deadlock.
DataSourceException
- if an error occured.java.lang.Object get(java.lang.String col) throws DataSourceException
getValue()
method is called and for columns from the
tablemodel the tablemodel method getValueAt(row, column)
gets
called.
col
- the item index.
java.lang.IllegalStateException
- if the datarow detected a deadlock.
DataSourceException
- if an error occured.java.lang.String getColumnName(int col) throws DataSourceException
getColumnName
method is
called. For functions, expressions and report properties the assigned name
is returned.
getColumnName
in interface DataSet
col
- the item index.
DataSourceException
- if an error occured.int getColumnCount() throws DataSourceException
getColumnCount
in interface DataSet
DataSourceException
- if an error occured.DataFlags getFlags(java.lang.String col) throws DataSourceException
col
- the colum for which to query the meta-data flags
DataSourceException
- if an error occured.DataFlags getFlags(int col) throws DataSourceException
col
- the colum for which to query the meta-data flags
DataSourceException
- if an error occured.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |