|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<E>
org.neodatis.tool.wrappers.list.OdbArrayList<T>
org.neodatis.odb.impl.core.query.list.objects.LazySimpleListOfAOI<T>
public class LazySimpleListOfAOI<T>
A simple list to hold query result. It is used when no index and no order by This collection does not store the objects, it only holds the Abstract Object Info (AOI) of the objects. When user ask an object the object is lazy loaded by the buildInstance method
Field Summary |
---|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
LazySimpleListOfAOI()
|
|
LazySimpleListOfAOI(int size,
IInstanceBuilder builder,
boolean returnInstance)
|
Method Summary | |
---|---|
boolean |
addWithKey(int key,
T object)
Add an object into the collection using a specific ordering key |
boolean |
addWithKey(OdbComparable key,
T object)
Add an object into the collection using a specific ordering key |
T |
get(int index)
|
T |
getFirst()
Return the first object of the collection, if exist |
boolean |
hasNext()
Inform if the internal Iterator has more objects |
java.util.Iterator<T> |
iterator(OrderByConstants orderByType)
Returns the collection iterator throughout the order by OrderByConstants |
T |
next()
Returns the next object of the internal iterator of the collection |
boolean |
removeByKey(OdbComparable key,
java.lang.Object value)
Removes an object by its key |
void |
reset()
Reset the internal iterator of the collection |
java.lang.String |
toString()
|
Methods inherited from class org.neodatis.tool.wrappers.list.OdbArrayList |
---|
addAll, removeAll, set |
Methods inherited from class java.util.ArrayList |
---|
add, add, addAll, clear, clone, contains, ensureCapacity, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, retainAll |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Collection |
---|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Methods inherited from interface org.neodatis.tool.wrappers.list.IOdbList |
---|
add, isEmpty |
Methods inherited from interface java.util.List |
---|
add, addAll, clear, contains, containsAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, remove, retainAll, size, subList, toArray, toArray |
Constructor Detail |
---|
public LazySimpleListOfAOI()
public LazySimpleListOfAOI(int size, IInstanceBuilder builder, boolean returnInstance)
size
- builder
- returnInstance
- Method Detail |
---|
public boolean addWithKey(OdbComparable key, T object)
Objects
addWithKey
in interface Objects<T>
public boolean addWithKey(int key, T object)
Objects
addWithKey
in interface Objects<T>
public T getFirst()
Objects
getFirst
in interface Objects<T>
public T get(int index)
get
in interface java.util.List<T>
get
in interface IOdbList<T>
get
in class OdbArrayList<T>
public boolean hasNext()
Objects
hasNext
in interface Objects<T>
public java.util.Iterator<T> iterator(OrderByConstants orderByType)
Objects
OrderByConstants
iterator
in interface Objects<T>
public T next()
Objects
next
in interface Objects<T>
public void reset()
Objects
reset
in interface Objects<T>
public java.lang.String toString()
toString
in class java.util.AbstractCollection<T>
public boolean removeByKey(OdbComparable key, java.lang.Object value)
Objects
removeByKey
in interface Objects<T>
value
- The object to be removed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |