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.
 java.lang.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

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

Returns:
boolean true if the ObjectSet has more elements.

next

public java.lang.Object next()
returns the next object in the ObjectSet.

Returns:
the next object in the ObjectSet.

reset

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

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


size

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

Returns:
the number of elements in the ObjectSet.


Authors: Thomas Mahler and others. (C) 2000, 2001.
All rights reserved. Published under the Gnu Public License.
http://objectbridge.sourceforge.net
Version: 0.8.375, 2002-04-04