S.O.D.A. - Simple Object Database Access - design documentation v. (unknown).

org.odbms
Interface ObjectSet


public interface ObjectSet

query resultset.

The ObjectSet interface serves as a cursor to iterate 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

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

Returns:
boolean true if the ObjectSet has more elements.

next

public 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.

S.O.D.A. - Simple Object Database Access - design documentation v. (unknown).

You can get the current version of the specification at the S.O.D.A project at Sourceforge.
Build time of the docs you are viewing: Thursday, 19.09.2002, 23:39 GMT