Package io.jmix.restds.impl
Class RestDataStore
java.lang.Object
io.jmix.core.datastore.AbstractDataStore
io.jmix.restds.impl.RestDataStore
- All Implemented Interfaces:
DataStore
@Component("restds_RestDataStore")
@Scope("prototype")
public class RestDataStore
extends AbstractDataStore
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
Nested classes/interfaces inherited from class io.jmix.core.datastore.AbstractDataStore
AbstractDataStore.EntityLoadInfo, AbstractDataStore.TransactionContextState
-
Field Summary
Fields inherited from class io.jmix.core.datastore.AbstractDataStore
entityStates, keyValueMapper, listeners, metadata, metadataTools
-
Constructor Summary
ConstructorDescriptionRestDataStore
(org.springframework.context.ApplicationContext applicationContext, RestSerialization restSerialization, RestFilterBuilder restFilterBuilder, RestEntityEventManager entityEventManager, RestSaveContextProcessor saveContextProcessor, FetchPlanRepository fetchPlanRepository) -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
beginLoadTransaction
(boolean joinTransaction) protected Object
beginSaveTransaction
(boolean joinTransaction) protected void
commitTransaction
(Object transaction) protected long
countAll
(LoadContext<?> context) protected long
countAllValues
(ValueLoadContext context) deleteAll
(SaveContext context) getName()
This data store instance name with which it is registered inStores
.getTransactionContextState
(boolean isJoinTransaction) Invoked afterAbstractDataStore.beginLoadTransaction(boolean)
.loadAll
(LoadContext<?> context) loadAllValues
(ValueLoadContext context) protected Object
loadOne
(LoadContext<?> context) protected void
rollbackTransaction
(Object transaction) saveAll
(SaveContext context) void
Sets this data store instance name with which it is registered inStores
.Methods inherited from class io.jmix.core.datastore.AbstractDataStore
beforeLoadTransactionCommit, beforeSaveTransactionCommit, beforeSaveTransactionRollback, checkAndReorderLoadedEntities, copyNonPersistentAttributes, fireEvent, getCount, getCount, getFetchPlanForSave, load, loadAllAfterSave, loadList, loadListByBatches, loadValues, registerInterceptor, save, setEntityStates, setKeyValueMapper, setMetadata, setMetadataTools
-
Field Details
-
storeName
-
-
Constructor Details
-
RestDataStore
public RestDataStore(org.springframework.context.ApplicationContext applicationContext, RestSerialization restSerialization, RestFilterBuilder restFilterBuilder, RestEntityEventManager entityEventManager, RestSaveContextProcessor saveContextProcessor, FetchPlanRepository fetchPlanRepository)
-
-
Method Details
-
getRestInvoker
-
loadOne
- Specified by:
loadOne
in classAbstractDataStore
-
loadAll
- Specified by:
loadAll
in classAbstractDataStore
-
countAll
- Specified by:
countAll
in classAbstractDataStore
-
saveAll
- Specified by:
saveAll
in classAbstractDataStore
-
deleteAll
- Specified by:
deleteAll
in classAbstractDataStore
-
loadAllValues
- Specified by:
loadAllValues
in classAbstractDataStore
-
countAllValues
- Specified by:
countAllValues
in classAbstractDataStore
-
beginLoadTransaction
- Specified by:
beginLoadTransaction
in classAbstractDataStore
-
beginSaveTransaction
- Specified by:
beginSaveTransaction
in classAbstractDataStore
-
commitTransaction
- Specified by:
commitTransaction
in classAbstractDataStore
-
rollbackTransaction
- Specified by:
rollbackTransaction
in classAbstractDataStore
-
getTransactionContextState
protected AbstractDataStore.TransactionContextState getTransactionContextState(boolean isJoinTransaction) Description copied from class:AbstractDataStore
Invoked afterAbstractDataStore.beginLoadTransaction(boolean)
.
Override this method to createAbstractDataStore.TransactionContextState
implementation and store required data in it.- Specified by:
getTransactionContextState
in classAbstractDataStore
-
getName
Description copied from interface:DataStore
This data store instance name with which it is registered inStores
. -
setName
Description copied from interface:DataStore
Sets this data store instance name with which it is registered inStores
.
-