public interface DataStore
Implementations of this interface are used by DataManager
, do not invoke them
from your application code.
Modifier and Type | Method and Description |
---|---|
java.util.Set<Entity> |
commit(CommitContext context)
Commits a collection of new or detached entity instances to the storage.
|
long |
getCount(LoadContext<? extends Entity> context)
Returns the number of entity instances for the given query passed in the
LoadContext . |
<E extends Entity> |
load(LoadContext<E> context)
Loads a single entity instance.
|
<E extends Entity> |
loadList(LoadContext<E> context)
Loads collection of entity instances.
|
java.util.List<KeyValueEntity> |
loadValues(ValueLoadContext context)
Loads list of key-value pairs.
|
@Nullable <E extends Entity> E load(LoadContext<E> context)
<E extends Entity> java.util.List<E> loadList(LoadContext<E> context)
long getCount(LoadContext<? extends Entity> context)
LoadContext
.java.util.Set<Entity> commit(CommitContext context)
java.util.List<KeyValueEntity> loadValues(ValueLoadContext context)
context
- defines a query for scalar values and a list of keys for returned KeyValueEntity