Package io.jmix.samples.rest.service
Class TestInMemoryDataStore
java.lang.Object
io.jmix.samples.rest.service.TestInMemoryDataStore
- All Implemented Interfaces:
 DataStore
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidclear()longgetCount(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.save(SaveContext context) Saves a collection of entity instances.voidSets this data store instance name with which it is registered inStores. 
- 
Constructor Details
- 
TestInMemoryDataStore
public TestInMemoryDataStore() 
 - 
 - 
Method Details
- 
getName
Description copied from interface:DataStoreThis data store instance name with which it is registered inStores. - 
setName
Description copied from interface:DataStoreSets this data store instance name with which it is registered inStores. - 
load
Description copied from interface:DataStoreLoads a single entity instance. - 
loadList
Description copied from interface:DataStoreLoads collection of entity instances. - 
getCount
Description copied from interface:DataStoreReturns the number of entity instances for the given query passed in theLoadContext. - 
save
Description copied from interface:DataStoreSaves a collection of entity instances. - 
loadValues
Description copied from interface:DataStoreLoads list of key-value pairs.- Specified by:
 loadValuesin interfaceDataStore- Parameters:
 context- defines a query for scalar values and a list of keys for returned KeyValueEntity- Returns:
 - list of KeyValueEntity instances
 
 - 
getCount
Description copied from interface:DataStoreReturns the number of key-value pairs for the given query passed in theValueLoadContext. - 
clear
public void clear() 
 -