@Component(value="core_NoopDataStore") @Scope(value="prototype") public class NoopDataStore extends java.lang.Object implements DataStore
DataStore
interface.
DataManager
routes here non-JPA entities that are not explicitly associated with any data store.Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
name |
Constructor and Description |
---|
NoopDataStore() |
Modifier and Type | Method and Description |
---|---|
long |
getCount(LoadContext<?> context)
Returns the number of entity instances for the given query passed in the
LoadContext . |
long |
getCount(ValueLoadContext context)
Returns the number of key-value pairs for the given query passed in the
ValueLoadContext . |
java.lang.String |
getName()
This data store instance name with which it is registered in
Stores . |
java.lang.Object |
load(LoadContext<?> context)
Loads a single entity instance.
|
java.util.List<java.lang.Object> |
loadList(LoadContext<?> context)
Loads collection of entity instances.
|
java.util.List<KeyValueEntity> |
loadValues(ValueLoadContext context)
Loads list of key-value pairs.
|
java.util.Set<?> |
save(SaveContext context)
Saves a collection of entity instances.
|
void |
setName(java.lang.String name)
Sets this data store instance name with which it is registered in
Stores . |
public java.lang.String getName()
DataStore
Stores
.public void setName(java.lang.String name)
DataStore
Stores
.@Nullable public java.lang.Object load(LoadContext<?> context)
DataStore
public java.util.List<java.lang.Object> loadList(LoadContext<?> context)
DataStore
public long getCount(LoadContext<?> context)
DataStore
LoadContext
.public java.util.Set<?> save(SaveContext 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 KeyValueEntitypublic long getCount(ValueLoadContext context)
DataStore
ValueLoadContext
.