|
db4o 7.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ObjectSet<Item>
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
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.
for extended functionality.
Method Summary | |
---|---|
ExtObjectSet |
ext()
returns an ObjectSet with extended functionality. |
boolean |
hasNext()
returns true if the ObjectSet has more elements. |
Item |
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 . |
Methods inherited from interface java.util.List |
---|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toArray |
Methods inherited from interface java.util.Iterator |
---|
remove |
Method Detail |
---|
ExtObjectSet ext()
boolean hasNext()
true
if the ObjectSet
has more elements.
hasNext
in interface java.util.Iterator<Item>
true
if the ObjectSet
has more
elements.Item next()
ObjectSet
.
global
or
class specific
setting.
next
in interface java.util.Iterator<Item>
ObjectSet
.void reset()
ObjectSet
cursor before the first element.
next()
will return the first element.
int size()
ObjectSet
.
size
in interface java.util.Collection<Item>
size
in interface java.util.List<Item>
ObjectSet
.
|
db4o 7.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |