ResultSetDataModel is a convenience implementation of DataModel that wraps a
ResultSet of Java objects. Note that the specified ResultSet MUST be
scrollable. In addition, if input components (that will be updating model values) reference this object in value
binding expressions, the specified ResultSet MUST be updatable.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static class | |
| private static class | |
| private static class | |
| private static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private ResultSetMetaData | |
| private ResultSet | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ResultSetDataModel(ResultSet
ResultSet to be wrapped (if any)
Construct a new |
| Modifier and Type | Method and Description |
|---|---|
| private ResultSetMetaData | getMetaData()
Return the |
| public int | getRowCount()
Implements abstract jakarta.
Return -1, since |
| public Map | getRowData()
Implements abstract jakarta.
If row data is available, return a |
| public int | getRowIndex()
Implements abstract jakarta. Return the zero-relative index of the currently selected row. |
| public Object | getWrappedData()
Implements abstract jakarta.
Return the object representing the data wrapped by this |
| public boolean | isRowAvailable()
Implements abstract jakarta.
Return |
| public void | setRowIndex(int
The new zero-relative index (must be non-negative) rowIndex)Implements abstract jakarta. Set the zero-relative index of the currently selected row, or -1 to indicate that we are not positioned on a row. |
| public void | setWrappedData(Object
Data collection to be wrapped, or data)null to detach from any previous data collectionImplements abstract jakarta.
Set the object representing the data collection wrapped by this |
| private void | updated()
Mark the current row as having been updated, so that we will call |