public interface CollectionPersistenceContext
| Modifier and Type | Method and Description |
|---|---|
void |
addSetValue(java.lang.String key,
java.lang.Object value)
Adds a value to a set (creating it if it doesn't already exist).
|
void |
close()
Closes the context (and any underlying connections).
|
void |
commit()
Commits changes to maps.
|
java.util.Map<java.lang.String,java.lang.Object> |
getMap(java.lang.String key)
Retrieves a named map.
|
java.lang.Object |
getMapValue(java.lang.String key,
java.lang.String name)
Retrieves a value from within a named map.
|
java.util.Set<java.lang.Object> |
getSet(java.lang.String key)
Retrieves a named set.
|
boolean |
hasMap(java.lang.String key)
Indicates whether a given named map exists.
|
boolean |
hasSet(java.lang.String key)
Indicates whether a given named set exists.
|
boolean |
hasSetValue(java.lang.String key,
java.lang.Object value)
Indicates whether a named set contains a value.
|
void |
remove(java.lang.String key)
Removes a named map.
|
void |
removeFromSet(java.lang.String key,
java.lang.Object value)
Removes a value from a named set.
|
void |
setMap(java.lang.String key,
java.util.Map<java.lang.String,java.lang.Object> map)
Sets a named map.
|
void |
setMapValue(java.lang.String key,
java.lang.String name,
java.lang.Object value)
Sets a property within a named map.
|
void |
setSet(java.lang.String key,
java.util.Set<java.lang.Object> set) |
void addSetValue(java.lang.String key,
java.lang.Object value)
key - the key referencing the setvalue - the value to addjava.util.Map<java.lang.String,java.lang.Object> getMap(java.lang.String key)
key - the map keyjava.lang.Object getMapValue(java.lang.String key,
java.lang.String name)
key - the map keyname - the name of the property to retrievejava.util.Set<java.lang.Object> getSet(java.lang.String key)
key - the key referencing the setboolean hasMap(java.lang.String key)
key - the key referencing the mapboolean hasSet(java.lang.String key)
key - the key referencing the setboolean hasSetValue(java.lang.String key,
java.lang.Object value)
key - the key referencing the setvalue - the value to check forvoid setMap(java.lang.String key,
java.util.Map<java.lang.String,java.lang.Object> map)
key - the key referencing the mapmap - the Map instancevoid setMapValue(java.lang.String key,
java.lang.String name,
java.lang.Object value)
key - the key referencing the mapname - the name to setvalue - the value to set for the namevoid setSet(java.lang.String key,
java.util.Set<java.lang.Object> set)
void remove(java.lang.String key)
key - the key referencing the mapvoid removeFromSet(java.lang.String key,
java.lang.Object value)
key - the key referencing the setvalue - the value to removevoid commit()
void close()
Copyright © 2015 Whizzo Software LLC. All rights reserved.