public class MapImpl<K,V> extends java.util.AbstractMap<K,V> implements AmberCollection
Constructor and Description |
---|
MapImpl(AmberConnection aConn,
java.lang.String query,
java.lang.reflect.Method methodGetMapKey) |
MapImpl(AmberQuery query,
java.lang.reflect.Method methodGetMapKey) |
Modifier and Type | Method and Description |
---|---|
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.
|
clone, containsKey, containsValue, equals, hashCode, isEmpty, put, remove, toString, values
public MapImpl(AmberConnection aConn, java.lang.String query, java.lang.reflect.Method methodGetMapKey)
public MapImpl(AmberQuery query, java.lang.reflect.Method methodGetMapKey)
public void setSession(AmberConnection aConn)
public AmberConnection getSession()
public AmberQuery getQuery()
public int size()
public java.util.Set<java.util.Map.Entry<K,V>> entrySet()
public V get(java.lang.Object key)
public java.util.Set<K> keySet()
public void clear()
public void update()
update
in interface AmberCollection
public void detach()
public void putAll(java.util.Map<? extends K,? extends V> map)
protected boolean isValid()