Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
Constructor and Description |
---|
RdbmsStore(java.lang.String storeName) |
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.
|
public static final java.lang.String NAME
@Nullable public <E extends Entity> E load(LoadContext<E> context)
DataStore
public <E extends Entity> java.util.List<E> loadList(LoadContext<E> context)
DataStore
public long getCount(LoadContext<? extends Entity> context)
DataStore
LoadContext
.public java.util.Set<Entity> commit(CommitContext context)
DataStore
public java.util.List<KeyValueEntity> loadValues(ValueLoadContext context)
DataStore
loadValues
in interface DataStore
context
- defines a query for scalar values and a list of keys for returned KeyValueEntity