|
||||||||||
| 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.ResultDataModel
public class ResultDataModel
see Javadoc of JSF Specification
| Constructor Summary | |
|---|---|
ResultDataModel()
|
|
ResultDataModel(javax.servlet.jsp.jstl.sql.Result result)
|
|
| Method Summary | |
|---|---|
int |
getRowCount()
Return the number of rows of data available. |
Object |
getRowData()
Return the object associated with the current row index. |
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 ResultDataModel()
public ResultDataModel(javax.servlet.jsp.jstl.sql.Result result)
| Method Detail |
|---|
public int getRowCount()
DataModelIf the number of rows of data available is not known then -1 is returned. This may happen for DataModels that wrap sources of data such as java.sql.ResultSet that provide an iterator to access the "next item" rather than a fixed-size collection of data.
getRowCount in class DataModelpublic Object getRowData()
DataModelMethod isRowAvailable may be called before attempting to access this method, to ensure that the data is available.
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 DataModelpublic void setWrappedData(Object data)
DataModel
setWrappedData in class DataModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||