org.odbms
Interface ObjectSet

All Known Implementing Classes:
ObjectSetImpl

public interface ObjectSet

query resultset.

The ObjectSet interface providedes iterator functions to navigate through a set of objects retrieved by a query.


Method Summary
 boolean hasNext()
          returns true if the ObjectSet has more elements.
 Object next()
          returns the next object in the ObjectSet.
 void reset()
          resets the ObjectSet cursor before the first element.
 int size()
          returns the number of elements in the ObjectSet.
 

Method Detail

hasNext

boolean hasNext()
returns true if the ObjectSet has more elements.

Returns:
boolean true if the ObjectSet has more elements.

next

Object next()
returns the next object in the ObjectSet.

Returns:
the next object in the ObjectSet.

reset

void reset()
resets the ObjectSet cursor before the first element.

A subsequent call to next() will return the first element.


size

int size()
returns the number of elements in the ObjectSet.

Returns:
the number of elements in the ObjectSet.


Copyright © 2007-2012 The Kuali Foundation. All Rights Reserved.