public abstract class QueryResultMap<KeyType,ValueType> extends QueryResultAssociativeStore<KeyType,ValueType> implements java.util.Map<KeyType,ValueType>
NOT_ALLOW_MODIFICATIONS
Modifier | Constructor and Description |
---|---|
protected |
QueryResultMap(org.apache.log4j.Logger logger)
Constructor only visible to subclasses.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
java.util.Set<java.util.Map.Entry<KeyType,ValueType>> |
entrySet() |
ValueType |
get(java.lang.Object key) |
protected java.util.Map<KeyType,ValueType> |
getCache() |
protected java.util.Collection<java.util.Map.Entry<KeyType,ValueType>> |
getCacheEntries()
Returns the entries in the cache as a collection.
|
protected boolean |
internalCacheContainsEntry(KeyType key,
ValueType value) |
protected boolean |
internalCachePut(KeyType key,
ValueType value) |
protected boolean |
internalCacheRemove(KeyType key,
ValueType value) |
protected int |
internalCacheSize() |
boolean |
isEmpty() |
java.util.Set<KeyType> |
keySet() |
ValueType |
put(KeyType key,
ValueType value) |
void |
putAll(java.util.Map<? extends KeyType,? extends ValueType> map) |
ValueType |
remove(java.lang.Object key) |
protected void |
setCache(java.util.Map<KeyType,ValueType> cache) |
int |
size() |
java.util.Collection<ValueType> |
values() |
addCallbackOnQueryResultUpdate, checkModificationThroughQueryResultSetter, getListeners, getLogger, getSetter, internalClear, internalPut, internalRemove, modifyThroughQueryResultSetter, notifyListeners, removeCallbackOnQueryResultUpdate, setListeners, setLogger, setQueryResultSetter, setSetter
protected QueryResultMap(org.apache.log4j.Logger logger)
logger
- a logger that can be used for error reportingprotected java.util.Collection<java.util.Map.Entry<KeyType,ValueType>> getCacheEntries()
QueryResultAssociativeStore
getCacheEntries
in class QueryResultAssociativeStore<KeyType,ValueType>
protected boolean internalCachePut(KeyType key, ValueType value)
internalCachePut
in class QueryResultAssociativeStore<KeyType,ValueType>
protected boolean internalCacheRemove(KeyType key, ValueType value)
internalCacheRemove
in class QueryResultAssociativeStore<KeyType,ValueType>
protected int internalCacheSize()
internalCacheSize
in class QueryResultAssociativeStore<KeyType,ValueType>
protected boolean internalCacheContainsEntry(KeyType key, ValueType value)
internalCacheContainsEntry
in class QueryResultAssociativeStore<KeyType,ValueType>
protected void setCache(java.util.Map<KeyType,ValueType> cache)
cache
- the cache to setpublic boolean containsKey(java.lang.Object key)
public boolean containsValue(java.lang.Object value)
public java.util.Set<java.util.Map.Entry<KeyType,ValueType>> entrySet()
The returned set is immutable.
public ValueType get(java.lang.Object key)
public boolean isEmpty()
public java.util.Set<KeyType> keySet()
The returned set is immutable.
public ValueType put(KeyType key, ValueType value)
Throws UnsupportedOperationException
if there is no IQueryResultSetter
public void putAll(java.util.Map<? extends KeyType,? extends ValueType> map)
Throws UnsupportedOperationException
if there is no IQueryResultSetter
public ValueType remove(java.lang.Object key)
Throws UnsupportedOperationException
if there is no IQueryResultSetter