Skip to content

KVStore

KVStore is an abstraction of key-value stores.

KVStore is a Java Closeable.

Contract

count

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

delete

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

getMetadata

<T> T getMetadata(
  Class<T> klass)

read

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

removeAllByIndexValues

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

setMetadata

void setMetadata(
  Object value)

view

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

KVStoreView over entities of the given type

write

void write(
  Object value)

Implementations

Back to top