org.eobjects.metamodel.data
Class FirstRowDataSet
java.lang.Object
org.eobjects.metamodel.util.BaseObject
org.eobjects.metamodel.data.AbstractDataSet
org.eobjects.metamodel.data.FirstRowDataSet
- All Implemented Interfaces:
- Closeable, Iterable<Row>, DataSet
public final class FirstRowDataSet
- extends AbstractDataSet
Wraps another DataSet and enforces a first row offset.
|
Method Summary |
void |
close()
Closes the DataSet and any resources it may be holding. |
Row |
getRow()
|
boolean |
next()
Moves forward to the next row. |
FirstRowDataSet
public FirstRowDataSet(DataSet dataSet,
int firstRow)
- Constructs a
FirstRowDataSet.
- Parameters:
dataSet - the dataset to wrapfirstRow - the first row number (1-based).
close
public void close()
- Description copied from class:
AbstractDataSet
- Closes the DataSet and any resources it may be holding.
- Specified by:
close in interface Closeable- Specified by:
close in interface DataSet- Overrides:
close in class AbstractDataSet
getRow
public Row getRow()
- Returns:
- the current row.
next
public boolean next()
- Description copied from interface:
DataSet
- Moves forward to the next row.
- Returns:
- true if there is a next row or false if not.
Copyright © 2007-2013. All Rights Reserved.