db4o - database for objects v1.04

com.db4o
Interface ObjectSet


public interface ObjectSet

- the db4o query resultset.

The ObjectSet class serves as a cursor or iterator to navigate through a set of objects retrieved by a call to ObjectContainer.get(template).


Method Summary
 java.lang.Object current()
          returns the current object in the ObjectSet or NULL if there is no current object.
 boolean hasNext()
          returns true if the ObjectSet has more elements.
 boolean isEmpty()
          returns true if the ObjectSet is empty.
 java.lang.Object next()
          returns the next object in the ObjectSet.
 void reset()
          resets the ObjectSet cursor before the first element.

A subsequent call to next() will return the first element.
 int size()
          returns the number of elements in the ObjectSet.
 

Method Detail

current

public java.lang.Object current()
returns the current object in the ObjectSet or NULL if there is no current object.
Returns:
Object, the current object in the ObjectSet

hasNext

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

isEmpty

public boolean isEmpty()
returns true if the ObjectSet is empty.
Returns:
boolean true if the ObjectSet is empty.

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.

db4o - database for objects v1.04