org.jfree.report.modules.data.sql

Class SQLReportData

Implemented Interfaces:
DataSet, ReportData

public class SQLReportData
extends java.lang.Object
implements ReportData

Creation-Date: 19.02.2006, 17:37:42
Author:
Thomas Morgner

Fields inherited from interface org.jfree.report.ReportData

BEFORE_FIRST_ROW

Constructor Summary

SQLReportData(ResultSet resultSet, boolean labelMapping)

Method Summary

void
close()
Object
get(int column)
int
getColumnCount()
String
getColumnName(int column)
int
getCursorPosition()
int
getRowCount()
boolean
isAdvanceable()
This operation checks, whether a call to next will be likely to succeed.
boolean
isLabelMapping()
boolean
isReadable()
boolean
next()
boolean
setCursorPosition(int row)

Constructor Details

SQLReportData

public SQLReportData(ResultSet resultSet,
                     boolean labelMapping)
            throws SQLException,
                   DataSourceException

Method Details

close

public void close()
            throws DataSourceException
Specified by:
close in interface ReportData

get

public Object get(int column)
            throws DataSourceException
Specified by:
get in interface DataSet

getColumnCount

public int getColumnCount()
            throws DataSourceException
Specified by:
getColumnCount in interface DataSet

getColumnName

public String getColumnName(int column)
            throws DataSourceException
Specified by:
getColumnName in interface DataSet

getCursorPosition

public int getCursorPosition()
            throws DataSourceException
Specified by:
getCursorPosition in interface ReportData

getRowCount

public int getRowCount()
            throws DataSourceException

isAdvanceable

public boolean isAdvanceable()
            throws DataSourceException
This operation checks, whether a call to next will be likely to succeed. If there is a next data row, this should return true.
Specified by:
isAdvanceable in interface ReportData
Returns:

isLabelMapping

public boolean isLabelMapping()

isReadable

public boolean isReadable()
            throws DataSourceException
Specified by:
isReadable in interface ReportData

next

public boolean next()
            throws DataSourceException
Specified by:
next in interface ReportData

setCursorPosition

public boolean setCursorPosition(int row)
            throws DataSourceException
Specified by:
setCursorPosition in interface ReportData