Package com.db4o.internal.query
Class ObjectSetFacade
- java.lang.Object
- 
- java.util.AbstractCollection<E>
- 
- java.util.AbstractList
- 
- com.db4o.internal.query.ObjectSetFacade
 
 
 
- 
- All Implemented Interfaces:
- ExtObjectSet,- ObjectSet,- java.lang.Iterable,- java.util.Collection,- java.util.List
 
 public class ObjectSetFacade extends java.util.AbstractList implements ExtObjectSet 
- 
- 
Field SummaryFields Modifier and Type Field Description StatefulQueryResult_delegate
 - 
Constructor SummaryConstructors Constructor Description ObjectSetFacade(QueryResult queryResult)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(java.lang.Object obj)ExtObjectSetext()Returns an ObjectSet with extended functionality.java.lang.Objectget(int index)returns the item at position [index] in this ObjectSet.long[]getIDs()returns an array of internal IDs that correspond to the contained objects.booleanhasNext()Returns true if the ObjectSet has more elements.intindexOf(java.lang.Object obj)java.util.Iteratoriterator()intlastIndexOf(java.lang.Object obj)java.lang.Objectnext()Returns the next object in the ObjectSet.voidremove()voidreset()Resets the ObjectSet cursor before the first element.intsize()Returns the number of elements in the ObjectSet.voidskip(int count)skips the specified number of objects without activating them.voidsort(QueryComparator cmp)- 
Methods inherited from class java.util.AbstractListadd, add, addAll, clear, equals, hashCode, listIterator, listIterator, remove, removeRange, set, subList
 - 
Methods inherited from class java.util.AbstractCollectionaddAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
- 
 
- 
- 
- 
Field Detail- 
_delegatepublic final StatefulQueryResult _delegate 
 
- 
 - 
Constructor Detail- 
ObjectSetFacadepublic ObjectSetFacade(QueryResult queryResult) 
 
- 
 - 
Method Detail- 
sortpublic void sort(QueryComparator cmp) 
 - 
skippublic void skip(int count) Description copied from interface:ExtObjectSetskips the specified number of objects without activating them. Call this method before starting iterating over the iterator returned byList.iterator(). This method has no effect on calls toExtObjectSet.get(int)- Specified by:
- skipin interface- ExtObjectSet
 
 - 
iteratorpublic java.util.Iterator iterator() - Specified by:
- iteratorin interface- java.util.Collection
- Specified by:
- iteratorin interface- java.lang.Iterable
- Specified by:
- iteratorin interface- java.util.List
- Overrides:
- iteratorin class- java.util.AbstractList
 
 - 
getIDspublic long[] getIDs() Description copied from interface:ExtObjectSetreturns an array of internal IDs that correspond to the contained objects.- Specified by:
- getIDsin interface- ExtObjectSet
- See Also:
- ExtObjectContainer.getID(java.lang.Object),- ExtObjectContainer.getByID(long)
 
 - 
extpublic ExtObjectSet ext() Description copied from interface:ObjectSetReturns 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.
 - 
hasNextpublic boolean hasNext() Description copied from interface:ObjectSetReturns true if the ObjectSet has more elements.
 - 
nextpublic java.lang.Object next() Description copied from interface:ObjectSetReturns the next object in the ObjectSet.
 Before returning the object, next() triggers automatic activation of the object with the respectiveglobalorclass specificsetting.
 - 
resetpublic void reset() Description copied from interface:ObjectSetResets the ObjectSet cursor before the first element. A subsequent call toObjectSet.next()will return the first element.
 - 
sizepublic int size() Description copied from interface:ObjectSetReturns the number of elements in the ObjectSet.
 - 
containspublic boolean contains(java.lang.Object obj) - Specified by:
- containsin interface- java.util.Collection
- Specified by:
- containsin interface- java.util.List
- Overrides:
- containsin class- java.util.AbstractCollection
 
 - 
getpublic java.lang.Object get(int index) Description copied from interface:ExtObjectSetreturns the item at position [index] in this ObjectSet.
 The object will be activated.- Specified by:
- getin interface- ExtObjectSet
- Specified by:
- getin interface- java.util.List
- Specified by:
- getin class- java.util.AbstractList
- Parameters:
- index- the index position in this ObjectSet.
- Returns:
- the activated object.
 
 - 
indexOfpublic int indexOf(java.lang.Object obj) - Specified by:
- indexOfin interface- java.util.List
- Overrides:
- indexOfin class- java.util.AbstractList
 
 - 
lastIndexOfpublic int lastIndexOf(java.lang.Object obj) - Specified by:
- lastIndexOfin interface- java.util.List
- Overrides:
- lastIndexOfin class- java.util.AbstractList
 
 - 
removepublic void remove() 
 
- 
 
-