|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MapContainer
Represents a container of persistent objects in the store Acts as a map, but values can be retrieved in insertion order
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Method Summary | |
---|---|
void |
clear()
empty the container |
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object o)
|
Set |
entrySet()
|
Object |
get(Object key)
Get the value associated with the key |
Object |
getId()
|
Map |
getIndexMap()
|
Object |
getKey(StoreEntry keyLocation)
Get the Key object from it's location |
Object |
getValue(StoreEntry Valuelocation)
Get the value from it's location |
boolean |
isEmpty()
|
boolean |
isLoaded()
|
Set |
keySet()
|
void |
load()
The container is created or retrieved in an unloaded state. |
StoreEntry |
place(Object key,
Object Value)
Add an entry to the Store Map |
Object |
put(Object key,
Object value)
Add an entry |
void |
putAll(Map map)
Add add entries in the supplied Map |
Object |
remove(Object key)
remove an entry associated with the key |
void |
remove(StoreEntry entry)
Remove an Entry from ther Map |
void |
setIndexMap(Map map)
Set the internal index map |
void |
setKeyMarshaller(Marshaller keyMarshaller)
For homogenous containers can set a custom marshaller for loading keys The default uses Object serialization |
void |
setValueMarshaller(Marshaller valueMarshaller)
For homogenous containers can set a custom marshaller for loading values The default uses Object serialization |
int |
size()
|
void |
unload()
unload indexes from the container |
Collection |
values()
|
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Method Detail |
---|
void load()
void unload()
boolean isLoaded()
void setKeyMarshaller(Marshaller keyMarshaller)
keyMarshaller
- void setValueMarshaller(Marshaller valueMarshaller)
valueMarshaller
- Object getId()
int size()
size
in interface Map
boolean isEmpty()
isEmpty
in interface Map
boolean containsKey(Object key)
containsKey
in interface Map
key
-
Object get(Object key)
get
in interface Map
key
-
boolean containsValue(Object o)
containsValue
in interface Map
o
-
void putAll(Map map)
putAll
in interface Map
map
- Set keySet()
keySet
in interface Map
Collection values()
values
in interface Map
Set entrySet()
entrySet
in interface Map
Object put(Object key, Object value)
put
in interface Map
key
- value
-
Object remove(Object key)
remove
in interface Map
key
-
void clear()
clear
in interface Map
StoreEntry place(Object key, Object Value)
key
- Value
-
void remove(StoreEntry entry)
entry
- Object getKey(StoreEntry keyLocation)
keyLocation
-
Object getValue(StoreEntry Valuelocation)
Valuelocation
-
void setIndexMap(Map map)
map
- Map getIndexMap()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |