|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
com.caucho.amber.collection.MapImpl<K,V>
public class MapImpl<K,V>
Represents a lazy collection.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.util.AbstractMap |
|---|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
java.util.Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
MapImpl(AmberConnection aConn,
java.lang.String query,
java.lang.reflect.Method methodGetMapKey)
|
|
MapImpl(AmberQuery query,
java.lang.reflect.Method methodGetMapKey)
|
|
| Method Summary | |
|---|---|
void |
clear()
Clears the collection. |
void |
detach()
Detaches the collection. |
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet()
Returns a set view of the mappings contained in this map. |
V |
get(java.lang.Object key)
Returns an iterator of the items. |
AmberQuery |
getQuery()
Returns the query. |
AmberConnection |
getSession()
Returns the session. |
protected boolean |
isValid()
|
java.util.Set<K> |
keySet()
Returns a set view of the keys contained in this map. |
void |
putAll(java.util.Map<? extends K,? extends V> map)
Adds an item to the collection. |
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.AbstractMap |
|---|
clone, containsKey, containsValue, equals, hashCode, isEmpty, put, remove, toString, values |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MapImpl(AmberConnection aConn,
java.lang.String query,
java.lang.reflect.Method methodGetMapKey)
public MapImpl(AmberQuery query,
java.lang.reflect.Method methodGetMapKey)
| Method Detail |
|---|
public void setSession(AmberConnection aConn)
public AmberConnection getSession()
public AmberQuery getQuery()
public int size()
size in interface java.util.Map<K,V>size in class java.util.AbstractMap<K,V>public java.util.Set<java.util.Map.Entry<K,V>> entrySet()
entrySet in interface java.util.Map<K,V>entrySet in class java.util.AbstractMap<K,V>public V get(java.lang.Object key)
get in interface java.util.Map<K,V>get in class java.util.AbstractMap<K,V>public java.util.Set<K> keySet()
keySet in interface java.util.Map<K,V>keySet in class java.util.AbstractMap<K,V>public void clear()
clear in interface java.util.Map<K,V>clear in class java.util.AbstractMap<K,V>public void update()
update in interface AmberCollectionpublic void detach()
public void putAll(java.util.Map<? extends K,? extends V> map)
putAll in interface java.util.Map<K,V>putAll in class java.util.AbstractMap<K,V>protected boolean isValid()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||