|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<E>
com.caucho.amber.collection.SetImpl<E>
public class SetImpl<E>
Represents a lazy collection.
Constructor Summary | |
---|---|
SetImpl(AmberConnection aConn,
java.lang.String query)
|
|
SetImpl(AmberQuery query)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.util.AbstractSet |
---|
equals, hashCode, removeAll |
Methods inherited from class java.util.AbstractCollection |
---|
add, contains, containsAll, isEmpty, remove, 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.Set |
---|
add, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray |
Constructor Detail |
---|
public SetImpl(AmberConnection aConn, java.lang.String query)
public SetImpl(AmberQuery query)
Method Detail |
---|
public void setSession(AmberConnection aConn)
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.Set<E>
size
in class java.util.AbstractCollection<E>
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable<E>
iterator
in interface java.util.Collection<E>
iterator
in interface java.util.Set<E>
iterator
in class java.util.AbstractCollection<E>
public E get(int index)
public boolean addAll(java.util.Collection<? extends E> collection)
addAll
in interface java.util.Collection<E>
addAll
in interface java.util.Set<E>
addAll
in class java.util.AbstractCollection<E>
public void clear()
clear
in interface java.util.Collection<E>
clear
in interface java.util.Set<E>
clear
in class java.util.AbstractCollection<E>
public void update()
update
in interface AmberCollection
public void detach()
protected boolean isValid()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |