public class ResultSetDataModel extends DataModel
Constructor and Description |
---|
ResultSetDataModel() |
ResultSetDataModel(ResultSet resultSet) |
Modifier and Type | Method and Description |
---|---|
int |
getRowCount()
We don't know how many rows the result set has without scrolling
through the whole thing.
|
Object |
getRowData()
Get the actual data of this row
wrapped into a map.
|
int |
getRowIndex()
Get the current row index.
|
Object |
getWrappedData()
Get the entire collection of data associated with this component.
|
boolean |
isRowAvailable()
Returns true if a call to getRowData will return a valid object.
|
void |
setRowIndex(int rowIndex)
Set the current row index.
|
void |
setWrappedData(Object data)
Set the entire list of data associated with this component.
|
addDataModelListener, getDataModelListeners, removeDataModelListener
public ResultSetDataModel()
public ResultSetDataModel(ResultSet resultSet)
public int getRowCount()
getRowCount
in class DataModel
public Object getRowData()
getRowData
in class DataModel
public int getRowIndex()
DataModel
getRowIndex
in class DataModel
public Object getWrappedData()
DataModel
getWrappedData
in class DataModel
public boolean isRowAvailable()
DataModel
isRowAvailable
in class DataModel
public void setRowIndex(int rowIndex)
DataModel
setRowIndex
in class DataModel
public void setWrappedData(Object data)
DataModel
setWrappedData
in class DataModel
Copyright © 2013 Apache Software Foundation. All Rights Reserved.