|
||||||||||
| 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>
com.caucho.amber.collection.CollectionImpl<E>
public class CollectionImpl<E>
Represents a lazy collection.
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
CollectionImpl(AmberConnection aConn,
java.lang.String query)
|
|
CollectionImpl(AmberQuery query)
|
|
| Method Summary | |
|---|---|
boolean |
add(E o)
Adds an item to the collection. |
boolean |
addAll(int index,
java.util.Collection<? extends E> collection)
Adds an item to the collection. |
void |
clear()
Clears the collection. |
void |
detach()
Detaches the collection. |
E |
get(int index)
Returns an iterator of the items. |
AmberQuery |
getQuery()
Returns the query. |
AmberConnection |
getSession()
Returns the session. |
protected boolean |
isValid()
|
java.util.Iterator<E> |
iterator()
Returns an iterator of the items. |
void |
setSession(AmberConnection aConn)
Sets the session. |
int |
size()
Returns the number of items in the collection. |
void |
update()
Updates the collection. |
| Methods inherited from class java.util.AbstractList |
|---|
add, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
| Constructor Detail |
|---|
public CollectionImpl(AmberConnection aConn,
java.lang.String query)
public CollectionImpl(AmberQuery query)
| Method Detail |
|---|
public void setSession(AmberConnection aConn)
public AmberConnection getSession()
public AmberQuery getQuery()
public int size()
size in interface java.util.Collection<E>size in interface java.util.List<E>size in class java.util.AbstractCollection<E>public java.util.Iterator<E> iterator()
iterator in interface java.lang.Iterable<E>iterator in interface java.util.Collection<E>iterator in interface java.util.List<E>iterator in class java.util.AbstractList<E>public E get(int index)
get in interface java.util.List<E>get in class java.util.AbstractList<E>public boolean add(E o)
add in interface java.util.Collection<E>add in interface java.util.List<E>add in class java.util.AbstractList<E>
public boolean addAll(int index,
java.util.Collection<? extends E> collection)
addAll in interface java.util.List<E>addAll in class java.util.AbstractList<E>public void clear()
clear in interface java.util.Collection<E>clear in interface java.util.List<E>clear in class java.util.AbstractList<E>public void update()
update in interface AmberCollectionprotected boolean isValid()
public void detach()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||