org.neodatis.odb
Interface Objects<E>
-
- All Superinterfaces:
- java.util.Collection<E>, java.lang.Iterable<E>
- All Known Subinterfaces:
- Values
- All Known Implementing Classes:
- AbstractBTreeCollection, InMemoryBTreeCollection, InMemoryBTreeCollectionForValues, LazyBTreeCollection, LazySimpleListFromOid, LazySimpleListOfAOI, SimpleList, SimpleListForValues
public interface Objects<E> extends java.util.Collection<E>The main interface of all query results of NeoDatis ODB. Objects interface extends the Collection interface so it provides a standard collection behavior.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description booleanaddWithKey(int key, E o)Add an object into the collection using a specific ordering keybooleanaddWithKey(OdbComparable key, E o)Add an object into the collection using a specific ordering keyEgetFirst()Return the first object of the collection, if existbooleanhasNext()Inform if the internal Iterator has more objectsjava.util.Iterator<E>iterator(OrderByConstants orderByType)Returns the collection iterator throughout the order byOrderByConstantsEnext()Returns the next object of the internal iterator of the collectionbooleanremoveByKey(OdbComparable key, java.lang.Object value)Removes an object by its keyvoidreset()Reset the internal iterator of the collection
-
-
-
Method Detail
-
hasNext
boolean hasNext()
Inform if the internal Iterator has more objects- Returns:
-
next
E next()
Returns the next object of the internal iterator of the collection- Returns:
-
getFirst
E getFirst()
Return the first object of the collection, if exist- Returns:
-
reset
void reset()
Reset the internal iterator of the collection
-
addWithKey
boolean addWithKey(OdbComparable key, E o)
Add an object into the collection using a specific ordering key- Parameters:
key-object- The object can be an OID, can o NNOI (NonNativeObjectInfo) or the object- Returns:
-
addWithKey
boolean addWithKey(int key, E o)Add an object into the collection using a specific ordering key- Parameters:
key-object-- Returns:
-
iterator
java.util.Iterator<E> iterator(OrderByConstants orderByType)
Returns the collection iterator throughout the order byOrderByConstants- Parameters:
orderByType-- Returns:
-
removeByKey
boolean removeByKey(OdbComparable key, java.lang.Object value)
Removes an object by its key- Parameters:
key-value- The object to be removed- Returns:
- true if object has been removed
-
-
DataMelt 3.0 © DataMelt by jWork.ORG