org.apache.cayenne.access
Interface ResultIterator<T>

All Known Subinterfaces:
ResultIterator<T>
All Known Implementing Classes:
CollectionResultIterator, DistinctResultIterator, JDBCResultIterator, LimitResultIterator

Deprecated. since 3.2 moved to ResultIterator and significantly reworked.

@Deprecated
public interface ResultIterator<T>


Method Summary
 List<T> allRows()
          Deprecated. Returns all yet unread rows from ResultSet without closing it.
 void close()
          Deprecated. Closes ResultIterator and associated ResultSet.
 boolean hasNextRow()
          Deprecated. Returns true if there is at least one more record that can be read from the iterator.
 T nextRow()
          Deprecated. Returns the next result row that is, depending on the query, may be a scalar value, a DataRow, or an Object[] array containing a mix of scalars and DataRows.
 void skipRow()
          Deprecated. Goes past current row.
 

Method Detail

allRows

List<T> allRows()
Deprecated. 
Returns all yet unread rows from ResultSet without closing it.

Since:
3.0

hasNextRow

boolean hasNextRow()
Deprecated. 
Returns true if there is at least one more record that can be read from the iterator.


nextRow

T nextRow()
Deprecated. 
Returns the next result row that is, depending on the query, may be a scalar value, a DataRow, or an Object[] array containing a mix of scalars and DataRows.

Since:
3.0

skipRow

void skipRow()
Deprecated. 
Goes past current row. If the row is not needed, this may save some time on data conversion.

Since:
3.0

close

void close()
Deprecated. 
Closes ResultIterator and associated ResultSet. This method must be called explicitly when the user is finished processing the records. Otherwise unused database resources will not be released properly.



Copyright © 2001-2013 Apache Cayenne. All Rights Reserved.