Class ResultSetIterator<T>
java.lang.Object
games.stendhal.tools.loganalyser.util.ResultSetIterator<T>
- Type Parameters:
T
- object type
- Direct Known Subclasses:
GameEventEntryIterator
,LogEntryIterator
Iterates over a database query ResultSet-object doing all the
magic that is required to query a ResultSet.
- Author:
- hendrik
-
Field Summary
-
Constructor Summary
ConstructorDescriptionResultSetIterator(ResultSet resultSet)
Creates a new ResultSetIterator.ResultSetIterator(Statement statement, ResultSet resultSet)
Creates a new ResultSetIterator. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
resultSet
-
-
Constructor Details
-
ResultSetIterator
Creates a new ResultSetIterator.- Parameters:
resultSet
- resultSet
-
ResultSetIterator
Creates a new ResultSetIterator.- Parameters:
statement
- statementresultSet
- resultSet
-
-
Method Details
-
createObject
Creates the object instance.- Returns:
- T
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove() -
iterator
-