KVStore

KVStore is an abstraction of key-value stores.

Contract

count

long count(
  Class<?> type)
long count(
  Class<?> type,
  String index,
  Object indexedValue)

delete

void delete(
  Class<?> type,
  Object naturalKey)

getMetadata

T getMetadata(
  Class<T> klass)

read

T read(
  Class<T> klass,
  Object naturalKey)

removeAllByIndexValues

boolean removeAllByIndexValues(
  Class<T> klass,
  String index,
  Collection<?> indexValues)

setMetadata

void setMetadata(
  Object value)

view

KVStoreView<T> view(
  Class<T> type)

write

void write(
  Object value)

KVStores