public class TXMLObjectFetchingIteratorTimeLoggingImpl extends TXMLObjectFetchingIterator
START_AT_BEGIN, START_AT_END
Constructor and Description |
---|
TXMLObjectFetchingIteratorTimeLoggingImpl(TInputStreamInterpreter inputStreamInterpreter,
TAbstractAccessor abstractAccessor)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canMoveBy(int offset)
Indicates if this iterator can be moved by the given offset.
|
void |
close()
Invalidate this iterator.
|
int |
getCount()
Gets the query count as an int.
|
boolean |
hasCount()
Indicates if the response of Tamino contained the query count.
|
boolean |
hasNext()
Indicates if iterator has a next TXMLObject instance.
|
boolean |
hasPrevious()
Indicates if this iterator has a previous TXMLObject instance.
|
void |
moveBy(int offset)
Moves the iterator by the given offset.
|
TXMLObject |
next()
Returns the next TXMLObject in the underlying sequence.
|
TXMLObject |
previous()
Returns the previous TXMLObject in the list.
|
void |
reset()
Resets the iterator to its initial state as it has been constructed.
|
hasNextCursorObject, hasPreviousCursorObject
getCurrentIndex, getLocale, getResponseQueryContent, initIndex, setCurrentIndex, setLocale, setResponseQueryContent
public TXMLObjectFetchingIteratorTimeLoggingImpl(TInputStreamInterpreter inputStreamInterpreter, TAbstractAccessor abstractAccessor)
inputStreamInterpreter
- is responsible for the interpreting of low level Tamino results.abstractAccessor
- is needed to invoke generic commands on an underlying Tamino database.public boolean hasNext()
hasNext
in interface TXMLObjectIterator
hasNext
in class TXMLObjectFetchingIterator
public TXMLObject next() throws TNoSuchXMLObjectException, TIteratorException
next
in interface TXMLObjectIterator
next
in class TXMLObjectFetchingIterator
java.util.NoSuchElementException
- if iteration has no more elements.TIteratorException
- if iteration failed because of an underlying Tamino problem.TNoSuchXMLObjectException
- the if iteration has no next TXMLObject instance.public boolean hasPrevious()
hasPrevious
in interface TXMLObjectIterator
hasPrevious
in class TXMLObjectFetchingIterator
public TXMLObject previous() throws TNoSuchXMLObjectException, TIteratorException
previous
in interface TXMLObjectIterator
previous
in class TXMLObjectFetchingIterator
java.util.NoSuchElementException
- if iteration has no more elements.TIteratorException
- if iteration failed because of an underlying Tamino problem.TNoSuchXMLObjectException
- if the iteration has no previous TXMLObject instance.public boolean hasCount()
hasCount
in interface TXMLObjectIterator
hasCount
in class TXMLObjectFetchingIterator
public int getCount()
getCount
in interface TXMLObjectIterator
getCount
in class TXMLObjectFetchingIterator
public boolean canMoveBy(int offset) throws TIteratorException
canMoveBy
in interface TXMLObjectIterator
canMoveBy
in class TXMLObjectFetchingIterator
offset
- the positive or negative amount to move the iteratorTIteratorException
- if iteration failed because of an underlying Tamino problem.public void moveBy(int offset) throws TNoSuchXMLObjectException, TIteratorException
moveBy
in interface TXMLObjectIterator
moveBy
in class TXMLObjectFetchingIterator
offset
- the positive or negative amount to move the iteratorTNoSuchXMLObjectException
- if the new position is out of bounds.TIteratorException
- if iteration failed because of an underlying Tamino problem.public void reset() throws TIteratorException
reset
in interface TXMLObjectIterator
reset
in class TXMLObjectFetchingIterator
TIteratorException
- if iteration failed because of an underlying Tamino problem.public void close() throws TIteratorException
close
in interface TXMLObjectIterator
close
in class TXMLObjectFetchingIterator
TIteratorException
- if iteration failed because of an underlying Tamino problem.Copyright (c) 2016 Software AG. All Rights Reserved.