public class SetImpl<E> extends java.util.AbstractSet<E> implements AmberCollection
| Constructor and Description |
|---|
SetImpl(AmberConnection aConn,
java.lang.String query) |
SetImpl(AmberQuery query) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAll(java.util.Collection<? extends E> collection)
Adds all items to this 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 |
iterator()
Returns an iterator of the items.
|
void |
setSession(AmberConnection aConn)
Sets the session.
|
void |
setSession(AmberConnection aConn)
Sets the session.
|
int |
size()
Returns the number of items in the collection.
|
void |
update()
Updates the collection.
|
add, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic SetImpl(AmberConnection aConn, java.lang.String query)
public SetImpl(AmberQuery query)
public void setSession(AmberConnection aConn)
public void setSession(AmberConnection aConn)
public AmberConnection getSession()
public AmberQuery getQuery()
public int size()
public java.util.Iterator iterator()
public E get(int index)
public boolean addAll(java.util.Collection<? extends E> collection)
public void clear()
public void update()
update in interface AmberCollectionpublic void detach()
protected boolean isValid()