com.mobixess.jodb.soda.api
Interface ObjectSet<Clazz>

All Superinterfaces:
java.util.Collection<Clazz>, java.lang.Iterable<Clazz>, java.util.Iterator<Clazz>, java.util.List<Clazz>
All Known Implementing Classes:
JODBQueryList

public interface ObjectSet<Clazz>
extends java.util.List<Clazz>, java.util.Iterator<Clazz>

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

hasNext

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

Specified by:
hasNext in interface java.util.Iterator<Clazz>
Returns:
boolean true if the ObjectSet has more elements.

next

Clazz next()
returns the next object in the ObjectSet.

Specified by:
next in interface java.util.Iterator<Clazz>
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.

Specified by:
size in interface java.util.Collection<Clazz>
Specified by:
size in interface java.util.List<Clazz>
Returns:
the number of elements in the ObjectSet.


Copyright © Mobixess Inc. All Rights Reserved.