|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.model.DataModel
javax.faces.model.ResultSetDataModel
public class ResultSetDataModel
see Javadoc of JSF Specification
| Constructor Summary | |
|---|---|
ResultSetDataModel()
|
|
ResultSetDataModel(ResultSet resultSet)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class javax.faces.model.DataModel |
|---|
addDataModelListener, getDataModelListeners, removeDataModelListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResultSetDataModel()
public ResultSetDataModel(ResultSet resultSet)
| Method Detail |
|---|
public int getRowCount()
getRowCount in class DataModelpublic Object getRowData()
getRowData in class DataModelpublic int getRowIndex()
DataModel
getRowIndex in class DataModelpublic Object getWrappedData()
DataModel
getWrappedData in class DataModelpublic boolean isRowAvailable()
DataModel
isRowAvailable in class DataModelpublic void setRowIndex(int rowIndex)
DataModel
setRowIndex in class DataModelrowIndex - The row index. It may be -1 to indicate "no row",
or may be a value between 0 and getRowCount()-1.public void setWrappedData(Object data)
DataModel
setWrappedData in class DataModeldata - The object to be wrapped.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||