org.odbms
Interface ObjectSet


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

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

Returns:
boolean true if the ObjectSet has more elements.

next

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


(C) 2002 - 2006 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30