public class CollectionImpl<E> extends java.util.AbstractList<E> implements AmberCollection
Constructor and Description |
---|
CollectionImpl(AmberConnection aConn,
java.lang.String query) |
CollectionImpl(AmberQuery query) |
Modifier and Type | Method and Description |
---|---|
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.
|
add, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public CollectionImpl(AmberConnection aConn, java.lang.String query)
public CollectionImpl(AmberQuery query)
public void setSession(AmberConnection aConn)
public AmberConnection getSession()
public AmberQuery getQuery()
public int size()
public java.util.Iterator<E> iterator()
public E get(int index)
public boolean add(E o)
public boolean addAll(int index, java.util.Collection<? extends E> collection)
public void clear()
public void update()
update
in interface AmberCollection
protected boolean isValid()
public void detach()