org.jfree.report
Class EmptyReportData
java.lang.Object
org.jfree.report.EmptyReportData
- DataSet, ReportData
Creation-Date: 22.04.2006, 14:25:04
void | close() - Closes the datasource.
|
Object | get(int column)
|
int | getColumnCount()
|
String | getColumnName(int column)
|
int | getCursorPosition()
|
boolean | isAdvanceable() - This operation checks, whether a call to next will be likely to succeed.
|
boolean | isReadable() - Checks, whether this report-data instance is currently readable.
|
boolean | next() - This method produces the same result as 'setCursorPosition(getCursorPosition() + 1);'
|
boolean | setCursorPosition(int cursor) - Moves the cursor back to an already visited position.
|
close
public void close()
throws DataSourceException
Closes the datasource. This should be called at the end of each report
processing run. Whether this closes the underlying data-source backend
depends on the ReportDataFactory. Calling 'close()' on the ReportDataFactory
*must* close all report data objects.
- close in interface ReportData
isReadable
public boolean isReadable()
throws DataSourceException
Checks, whether this report-data instance is currently readable. A report-data instance cannot be
readable if it is positioned before the first row. (The look-ahead system of 'isAdvanceable()' will
prevent that the datasource is positioned behind the last row.)
- isReadable in interface ReportData
- true, if the datarow is valid, false otherwise.
setCursorPosition
public boolean setCursorPosition(int cursor)
throws DataSourceException
Moves the cursor back to an already visited position. Calling this method
for an row number that has not yet been read using 'next' is undefined,
whether that call succeeds is implementation dependent.
Calls to position zero (aka BEFORE_FIRST_ROW) will always succeeed (unless there is a physical
error, which invalidated the whole report-data object).
- setCursorPosition in interface ReportData
- true, if moving the cursor succeeded, false otherwise.