proai.cache
Class StringResultIterator

java.lang.Object
  extended by proai.cache.StringResultIterator
All Implemented Interfaces:
java.util.Iterator<java.lang.String[]>, CloseableIterator<java.lang.String[]>

public class StringResultIterator
extends java.lang.Object
implements CloseableIterator<java.lang.String[]>

An iterator around a database ResultSet that provides a String[] for each row. Rows in the result set contain two values. The first value is a String representing a relative filesystem path. The second value is a long representing a date. The returned String[] for each row will have two parts: The first is the relative filesystem path and the second is an ISO8601-formatted date (second precision).


Constructor Summary
StringResultIterator(java.sql.Connection conn, java.sql.Statement stmt, java.sql.ResultSet rs)
           
 
Method Summary
 void close()
           
 void finalize()
           
 boolean hasNext()
           
 java.lang.String[] next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringResultIterator

public StringResultIterator(java.sql.Connection conn,
                            java.sql.Statement stmt,
                            java.sql.ResultSet rs)
                     throws ServerException
Throws:
ServerException
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<java.lang.String[]>
Specified by:
hasNext in interface CloseableIterator<java.lang.String[]>

next

public java.lang.String[] next()
                        throws ServerException
Specified by:
next in interface java.util.Iterator<java.lang.String[]>
Specified by:
next in interface CloseableIterator<java.lang.String[]>
Throws:
ServerException

close

public void close()
Specified by:
close in interface CloseableIterator<java.lang.String[]>

finalize

public void finalize()
Overrides:
finalize in class java.lang.Object

remove

public void remove()
            throws java.lang.UnsupportedOperationException
Specified by:
remove in interface java.util.Iterator<java.lang.String[]>
Specified by:
remove in interface CloseableIterator<java.lang.String[]>
Throws:
java.lang.UnsupportedOperationException