public interface DataSourceIterator
extends java.util.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.
|
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.
|
java.lang.Object |
next()
Returns the next node in the iteration.
|
void |
remove()
This will throw an UnsupportedOperationException.
|
boolean hasNext()
hasNext
in interface java.util.Iterator
java.lang.Object next()
next
in interface java.util.Iterator
DataSourceNode getNode(int index) throws java.util.NoSuchElementException
index
- 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.void remove() throws java.lang.UnsupportedOperationException
remove
in interface java.util.Iterator
java.lang.UnsupportedOperationException
ForEachTag getTag() throws DataSourceException
DataSourceException
- Could not retrieve the data. Generally wraps a SqlException or XpathException.int getIndex() throws DataSourceException
DataSourceException
- Could not retrieve the data. Generally wraps a SqlException or XpathException.int getCount() throws DataSourceException
DataSourceException
- Could not retrieve the data. Generally wraps a SqlException or XpathException.boolean isFirst() throws DataSourceException
DataSourceException
- Could not retrieve the data. Generally wraps a SqlException or XpathException.boolean isLast() throws DataSourceException
DataSourceException
- Could not retrieve the data. Generally wraps a SqlException or XpathException.void close() throws DataSourceException
DataSourceException
- Could not retrieve the data.java.lang.Object getResultSet() throws DataSourceException
DataSourceException
- Could not retrieve the data. Generally wraps a SqlException or XpathException.Copyright © 2017 Windward Reports - All Rights Reserved. We are java reporting software