public interface KVStorePlugin extends Plugin
| Modifier and Type | Method and Description |
|---|---|
void |
clear(String collection)
Removes all elements from a collection.
|
int |
count(String collection) |
<C> Optional<C> |
find(String collection,
String id,
Class<C> clazz)
Finds the optional element to which the id is mapped inside the specified collection.
|
<C> List<C> |
findAll(String collection,
int skip,
Integer limit,
Class<C> clazz)
Finds all elements contained inside the specified collection.
|
List<String> |
getCollections()
Returns the list of collections managed by this plugin.
|
void |
put(String collection,
String id,
Object element)
Adds an element defined by an id in a collection.
|
void |
remove(String collection,
String id)
Removes an element defined by an id from a collection.
|
List<String> getCollections()
int count(String collection)
collection - the collectionvoid put(String collection, String id, Object element)
collection - the collectionid - the idelement - the elementvoid remove(String collection, String id)
collection - the collectionid - the idvoid clear(String collection)
collection - the collection<C> Optional<C> find(String collection, String id, Class<C> clazz)
C - Element typecollection - the collectionid - the idclazz - the type of the searched element<C> List<C> findAll(String collection, int skip, Integer limit, Class<C> clazz)
C - Element typecollection - the collectionskip - the position from which the elements are returnedlimit - the limit size of elementsclazz - the type of the searched elementCopyright © 2019. All Rights Reserved.