|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataSet
Represents a tabular DataSet where values are bound to columns and rows. A DataSet works similarly to a slightly modularized ResultSet when you traverse it - use the next() method to loop through the rows of the DataSet and use the getRow() method to get the current row.
| Method Summary | |
|---|---|
void |
close()
Closes the DataSet and any resources it may be holding. |
Row |
getRow()
|
SelectItem[] |
getSelectItems()
|
int |
indexOf(SelectItem item)
Finds the index of a given SelectItem |
Iterator<Row> |
iterator()
Converts the DataSet into an Iterator. |
boolean |
next()
Moves forward to the next row. |
List<Object[]> |
toObjectArrays()
Converts the DataSet into a list of object arrays (will load all values into memory) |
List<Row> |
toRows()
Converts the DataSet into a list of rows (will load all rows into memory) |
TableModel |
toTableModel()
Deprecated. instantiate a new DataSetTableModel instead. |
| Method Detail |
|---|
SelectItem[] getSelectItems()
int indexOf(SelectItem item)
item -
boolean next()
Row getRow()
void close()
close in interface Closeable@Deprecated TableModel toTableModel()
DataSetTableModel instead.
List<Object[]> toObjectArrays()
List<Row> toRows()
Iterator<Row> iterator()
Iterable objects, DataSets are unlikely to allow creation
of multiple iterators without risking loss of data in each individual
iteration loop.
iterator in interface Iterable<Row>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||