| com.db4o.ObjectSet
ObjectSet | public interface ObjectSet extends List<Item>,Iterator<Item>(Code) | | query resultset.
An ObjectSet is a representation for a set of objects returned
by a query.
ObjectSet extends the system collection interfaces
java.util.List/System.Collections.IList where they are available. It is
recommended, never to reference ObjectSet directly in code but to use
List / IList instead.
Note that the underlying
ObjectContainer ObjectContainer of an ObjectSet
needs to remain open as long as an ObjectSet is used. This is necessary
for lazy instantiation. The objects in an ObjectSet are only instantiated
when they are actually being used by the application.
See Also: ExtObjectSet See Also: for extended functionality. |
Method Summary | |
public ExtObjectSet | ext() returns an ObjectSet with extended functionality.
Every ObjectSet that db4o provides can be casted to
an ExtObjectSet. | public boolean | hasNext() returns true if the ObjectSet has more elements. | public Item | next() returns the next object in the ObjectSet . | public void | reset() resets the ObjectSet cursor before the first element. | public int | size() returns the number of elements in the ObjectSet . |
ext | public ExtObjectSet ext()(Code) | | returns an ObjectSet with extended functionality.
Every ObjectSet that db4o provides can be casted to
an ExtObjectSet. This method is supplied for your convenience
to work without a cast.
The ObjectSet functionality is split to two interfaces
to allow newcomers to focus on the essential methods.
|
hasNext | public boolean hasNext()(Code) | | returns true if the ObjectSet has more elements.
boolean - true if the ObjectSet has moreelements. |
reset | public void reset()(Code) | | resets the ObjectSet cursor before the first element.
A subsequent call to next() will return the first element.
|
size | public int size()(Code) | | returns the number of elements in the ObjectSet .
the number of elements in the ObjectSet . |
|
|