public interface AbstractNoSqlService<E extends NoSqlEntity,T extends Serializable>
| Modifier and Type | Method and Description |
|---|---|
long |
count()
Returns a count of all records
|
boolean |
exists(T id)
Checks if a entity with the given ID exists.
|
Iterable<E> |
findAll()
Find all elements for this service.
|
E |
findByID(T id) |
void |
remove(T id) |
E |
store(E object) |
E store(E object)
object - - the object to be stored in the databasevoid remove(T id)
id - - the database id of the object to be deletedlong count()
Iterable<E> findAll()
E findByID(T id)
id - the database ID for the object persisted in the databaseboolean exists(T id)
id - - the database IDCopyright © 2017 Europeana Foundation + AIT. All rights reserved.