public interface Store
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PERSISTENT_STORE
The role for a persistent store
|
static java.lang.String |
ROLE
The role for a persistent store
|
static java.lang.String |
TRANSIENT_STORE
The role for a transient store
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the Store of all data it holds
|
boolean |
containsKey(java.lang.Object key)
Indicates if the given key is associated to a contained object.
|
void |
free()
Try to free some used memory.
|
java.lang.Object |
get(java.lang.Object key)
Get the object associated to the given unique key.
|
java.util.Enumeration |
keys()
Returns the list of used keys as an Enumeration of Objects.
|
void |
remove(java.lang.Object key)
Remove the object associated to the given key.
|
int |
size()
Returns count of the objects in the store, or -1 if could not be
obtained.
|
void |
store(java.lang.Object key,
java.lang.Object value)
Store the given object.
|
static final java.lang.String ROLE
static final java.lang.String TRANSIENT_STORE
static final java.lang.String PERSISTENT_STORE
java.lang.Object get(java.lang.Object key)
void store(java.lang.Object key,
java.lang.Object value)
throws java.io.IOException
java.io.IOExceptionvoid free()
void remove(java.lang.Object key)
void clear()
boolean containsKey(java.lang.Object key)
java.util.Enumeration keys()
int size()