Package io.jmix.core.impl
Class NoopDataStore
java.lang.Object
io.jmix.core.impl.NoopDataStore
- All Implemented Interfaces:
- DataStore
@Component("core_NoopDataStore")
@Scope("prototype")
public class NoopDataStore
extends Object
implements DataStore
Empty implementation of the 
DataStore interface.
 DataManager routes here non-JPA entities that are not explicitly associated with any data store.- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionlonggetCount(LoadContext<?> context) Returns the number of entity instances for the given query passed in theLoadContext.longgetCount(ValueLoadContext context) Returns the number of key-value pairs for the given query passed in theValueLoadContext.getName()This data store instance name with which it is registered inStores.load(LoadContext<?> context) Loads a single entity instance.loadList(LoadContext<?> context) Loads collection of entity instances.loadValues(ValueLoadContext context) Loads list of key-value pairs.Set<?>save(SaveContext context) Saves a collection of entity instances.voidSets this data store instance name with which it is registered inStores.
- 
Field Details- 
name
 
- 
- 
Constructor Details- 
NoopDataStorepublic NoopDataStore()
 
- 
- 
Method Details- 
getNameDescription copied from interface:DataStoreThis data store instance name with which it is registered inStores.
- 
setNameDescription copied from interface:DataStoreSets this data store instance name with which it is registered inStores.
- 
loadDescription copied from interface:DataStoreLoads a single entity instance.
- 
loadListDescription copied from interface:DataStoreLoads collection of entity instances.
- 
getCountDescription copied from interface:DataStoreReturns the number of entity instances for the given query passed in theLoadContext.
- 
saveDescription copied from interface:DataStoreSaves a collection of entity instances.
- 
loadValuesDescription copied from interface:DataStoreLoads list of key-value pairs.- Specified by:
- loadValuesin interface- DataStore
- Parameters:
- context- defines a query for scalar values and a list of keys for returned KeyValueEntity
- Returns:
- list of KeyValueEntity instances
 
- 
getCountDescription copied from interface:DataStoreReturns the number of key-value pairs for the given query passed in theValueLoadContext.
 
-