public interface PersistentStore
Modifier and Type | Interface and Description |
---|---|
static class |
PersistentStore.PersistenceType |
Modifier and Type | Method and Description |
---|---|
void |
add(String type,
Collection<Map<String,Object>> items)
Adds a collection of items of specified type.
|
void |
add(String type,
Map<String,Object> properties)
Adds item of specified type with the specified properties.
|
int |
delete(String type,
String ecql)
Delete items matching the ECQL query criteria.
|
List<Map<String,Object>> |
get(String type)
Get all of the items of the specified type.
|
List<Map<String,Object>> |
get(String type,
String ecql)
Get items matching the ECQL query criteria.
|
void add(String type, Map<String,Object> properties) throws PersistenceException
type
- A non-empty string identifying the type of item being added.properties
- A map of properties making up the item. Property keys must have a suffix that
identifies the type of value for the entry. The PersistentItem class should be used for
creating this map.PersistenceException
- If the type is empty or there was an issue persisting the item.void add(String type, Collection<Map<String,Object>> items) throws PersistenceException
type
- A non-empty string identifying the type of items being added.items
- A list of map properties making up the items. Property keys must have a suffix
that identifies the type of value for the entry. The PersistentItem class should be used
for creating these maps.PersistenceException
- If the type is empty or there was an issue persisting the item.List<Map<String,Object>> get(String type) throws PersistenceException
type
- PersistenceException
List<Map<String,Object>> get(String type, String ecql) throws PersistenceException
type
- ecql
- PersistenceException
int delete(String type, String ecql) throws PersistenceException
type
- ecql
- PersistenceException
This work is licensed under a Creative Commons Attribution 4.0 International License.