|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eobjects.metamodel.util.BaseObject
org.eobjects.metamodel.data.AbstractDataSet
public abstract class AbstractDataSet
Abstract DataSet implementation. Provides convenient implementations of trivial method and reusable parts of non-trivial methods of a DataSet.
| Constructor Summary | |
|---|---|
AbstractDataSet()
Deprecated. use one of the other constructors, to provide header information. |
|
AbstractDataSet(Column[] columns)
|
|
AbstractDataSet(DataSet dataSet)
Constructor appropriate for dataset implementations that wrap other datasets, such as the MaxRowsDataSet, FilteredDataSet and
more. |
|
AbstractDataSet(DataSetHeader header)
|
|
AbstractDataSet(List<SelectItem> selectItems)
|
|
AbstractDataSet(SelectItem[] selectItems)
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the DataSet and any resources it may be holding. |
protected void |
decorateIdentity(List<Object> identifiers)
Subclasses should implement this method and add all fields to the list that are to be included in equals(...) and hashCode() evaluation |
protected DataSetHeader |
getHeader()
|
SelectItem[] |
getSelectItems()
|
int |
indexOf(SelectItem item)
Finds the index of a given SelectItem |
Iterator<Row> |
iterator()
Converts the DataSet into an Iterator. |
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) |
String |
toString()
|
TableModel |
toTableModel()
Converts the DataSet into a TableModel (will load all values into memory). |
| Methods inherited from class org.eobjects.metamodel.util.BaseObject |
|---|
classEquals, equals, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eobjects.metamodel.data.DataSet |
|---|
getRow, next |
| Constructor Detail |
|---|
@Deprecated public AbstractDataSet()
public AbstractDataSet(SelectItem[] selectItems)
public AbstractDataSet(List<SelectItem> selectItems)
public AbstractDataSet(DataSet dataSet)
MaxRowsDataSet, FilteredDataSet and
more.
dataSet - public AbstractDataSet(DataSetHeader header)
public AbstractDataSet(Column[] columns)
| Method Detail |
|---|
public SelectItem[] getSelectItems()
getSelectItems in interface DataSetprotected DataSetHeader getHeader()
public final int indexOf(SelectItem item)
indexOf in interface DataSetpublic void close()
close in interface Closeableclose in interface DataSetpublic final TableModel toTableModel()
toTableModel in interface DataSetpublic final List<Object[]> toObjectArrays()
toObjectArrays in interface DataSetpublic String toString()
toString in class BaseObjectprotected void decorateIdentity(List<Object> identifiers)
BaseObject
decorateIdentity in class BaseObjectpublic List<Row> toRows()
DataSet
toRows in interface DataSetpublic 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>iterator in interface DataSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||