javax.faces.model

Class ResultSetDataModel

public class ResultSetDataModel extends DataModel

Version: $Revision: 267200 $ $Date: 2005-09-02 15:30:47 +0200 (Fri, 02 Sep 2005) $

Author: Thomas Spiegl (latest modification by $Author: oros $) Martin Marinschek

Constructor Summary
ResultSetDataModel()
ResultSetDataModel(ResultSet resultSet)
Method Summary
intgetRowCount()
We don't know how many rows the result set has without scrolling through the whole thing.
ObjectgetRowData()
Get the actual data of this row wrapped into a map.
intgetRowIndex()
ObjectgetWrappedData()
booleanisRowAvailable()
voidsetRowIndex(int rowIndex)
voidsetWrappedData(Object data)

Constructor Detail

ResultSetDataModel

public ResultSetDataModel()

ResultSetDataModel

public ResultSetDataModel(ResultSet resultSet)

Method Detail

getRowCount

public int getRowCount()
We don't know how many rows the result set has without scrolling through the whole thing.

getRowData

public Object getRowData()
Get the actual data of this row wrapped into a map. The specification is very strict about what has to be returned from here, so check the spec before modifying anything here.

getRowIndex

public int getRowIndex()

getWrappedData

public Object getWrappedData()

isRowAvailable

public boolean isRowAvailable()

setRowIndex

public void setRowIndex(int rowIndex)

setWrappedData

public void setWrappedData(Object data)