public abstract class AbstractDataSourceIterator extends java.lang.Object implements DataSourceIterator
| Constructor and Description |
|---|
AbstractDataSourceIterator(AbstractDataSource abstractDataSource,
ForEachTag tag,
DataSourceNode[] stack,
IDataSourceResultSet resultSet)
Create the iterator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
We are done with this iterator.
|
int |
getCount()
Return the count the iteration is on.
|
int |
getIndex()
Return the index the iteration is on.
|
DataSourceNode |
getNode(int index)
Returns the requested node from the set of nodes presently on.
|
AbstractDataSource |
getParent() |
java.lang.Object |
getResultSet()
Returns the result set this iterator presently holds.
|
ForEachTag |
getTag()
Return the forEach tag in use for this iterator.
|
boolean |
hasNext()
Returns true if the iteration has more nodes.
|
boolean |
isFirst()
Return true if on the first node returned.
|
boolean |
isLast()
Return true if on the last node returned.
|
abstract java.lang.Object |
next()
Returns the next node in the iteration.
|
void |
remove()
This will throw an UnsupportedOperationException.
|
public AbstractDataSourceIterator(AbstractDataSource abstractDataSource, ForEachTag tag, DataSourceNode[] stack, IDataSourceResultSet resultSet) throws DataSourceException
abstractDataSource - The parent datasource.tag - The forEach tag this is iterating over.stack - The node stack. This is the root and all outer forEach tags this iis inside.resultSet - The result set from the DataSourceNode that is creating this iterator.DataSourceExceptionpublic boolean hasNext()
hasNext in interface java.util.IteratorhasNext in interface DataSourceIteratorpublic abstract java.lang.Object next()
next in interface java.util.Iteratornext in interface DataSourceIteratorpublic DataSourceNode getNode(int index) throws java.util.NoSuchElementException
getNode in interface DataSourceIteratorindex - The offset from the base node on. A value of 0 is identical to the value returned by next.java.util.NoSuchElementException - thrown if past the end of the list.public void remove()
throws java.util.NoSuchElementException
remove in interface java.util.Iteratorremove in interface DataSourceIteratorjava.util.NoSuchElementExceptionpublic AbstractDataSource getParent()
public boolean isFirst()
isFirst in interface DataSourceIteratorpublic boolean isLast()
isLast in interface DataSourceIteratorpublic void close()
close in interface DataSourceIteratorpublic java.lang.Object getResultSet()
throws DataSourceException
getResultSet in interface DataSourceIteratorDataSourceException - Could not retrieve the data. Generally wraps a SqlException or XpathException.public int getIndex()
getIndex in interface DataSourceIteratorpublic int getCount()
getCount in interface DataSourceIteratorpublic ForEachTag getTag()
getTag in interface DataSourceIteratorCopyright © 2017 Windward Reports - All Rights Reserved. We are java reporting software