Class DataObjectInstanceVariableContainerEntitySession
java.lang.Object
com.flowable.dataobject.engine.impl.runtime.datasource.DataObjectInstanceVariableContainerEntitySession
- All Implemented Interfaces:
Session
- Author:
- Filip Hrisafov
-
Field Summary
Modifier and TypeFieldDescriptionprotected Map<String,
Map<Object, Collection<VariableInstanceEntity>>> protected Map<String,
Map<Object, CachedDataObjectInstanceVariableContainer>> protected final DataObjectRepositoryService
protected Map<String,
Map<Object, DataObjectInstanceVariableContainer>> protected static final org.slf4j.Logger
protected final DataObjectOperations
protected List<DataObjectInstanceVariableContainer>
protected Set<VariableInstanceEntity>
-
Constructor Summary
ConstructorDescriptionDataObjectInstanceVariableContainerEntitySession
(DataObjectRepositoryService dataObjectRepositoryService, DataObjectOperations serviceRegistryDataObjectOperations) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected void
void
void
findByDataAndDefinitionId
(Map<String, Object> data, String definitionId) findByIdAndDefinitionId
(String id, String definitionId) void
flush()
protected void
flushDeleteEntities
(String definitionId, Collection<DataObjectInstanceVariableContainer> entities) protected void
flushInsertEntities
(String definitionId, Collection<DataObjectInstanceVariableContainer> entities) protected void
flushUpdateEntities
(String definitionId, Collection<DataObjectInstanceVariableContainer> objectsToUpdate) protected void
protected void
protected DataObjectDefinition
getDataObjectDefinitionByDefinitionId
(String definitionId) protected DataObjectModel
getDataObjectModelByDefinitionId
(String definitionId) void
boolean
putInCache
(DataObjectInstanceVariableContainer entity, boolean storeState) void
putInCacheIfMissing
(DataObjectInstanceVariableContainer dataObjectInstance) void
putInCacheIfMissing
(DataObjectInstanceVariableContainer dataObjectInstance, ValueFields valueFields) protected void
Clears all deleted and inserted objects from the cache, and removes inserts and deletes that cancel each other.protected DataObjectInstanceVariableContainer
selectById
(String id, String definitionId) void
-
Field Details
-
LOGGER
protected static final org.slf4j.Logger LOGGER -
dataObjectRepositoryService
-
serviceRegistryDataObjectOperations
-
deletedObjects
-
updatedObjects
-
cachedDefinitionIdDataObjectIdValueFields
protected Map<String,Map<Object, cachedDefinitionIdDataObjectIdValueFieldsCollection<VariableInstanceEntity>>> -
variablesToUpdate
-
cachedObjects
-
-
Constructor Details
-
DataObjectInstanceVariableContainerEntitySession
public DataObjectInstanceVariableContainerEntitySession(DataObjectRepositoryService dataObjectRepositoryService, DataObjectOperations serviceRegistryDataObjectOperations)
-
-
Method Details
-
insert
-
update
-
delete
-
findByIdAndDefinitionId
-
findByDataAndDefinitionId
public DataObjectInstanceVariableContainer findByDataAndDefinitionId(Map<String, Object> data, String definitionId) -
selectById
-
putInCacheIfMissing
-
putInCacheIfMissing
public void putInCacheIfMissing(DataObjectInstanceVariableContainer dataObjectInstance, ValueFields valueFields) -
putInCache
public CachedDataObjectInstanceVariableContainer putInCache(DataObjectInstanceVariableContainer entity, boolean storeState) -
flush
public void flush() -
determineUpdatedObjects
public void determineUpdatedObjects() -
removeUnnecessaryOperations
protected void removeUnnecessaryOperations()Clears all deleted and inserted objects from the cache, and removes inserts and deletes that cancel each other.Also removes deletes with duplicate ids.
-
flushVariableUpdates
protected void flushVariableUpdates() -
isEntityToBeDeleted
-
debugFlush
protected void debugFlush() -
flushInsertEntities
protected void flushInsertEntities(String definitionId, Collection<DataObjectInstanceVariableContainer> entities) -
flushUpdates
protected void flushUpdates() -
flushUpdateEntities
protected void flushUpdateEntities(String definitionId, Collection<DataObjectInstanceVariableContainer> objectsToUpdate) -
flushDeleteEntities
protected void flushDeleteEntities(String definitionId, Collection<DataObjectInstanceVariableContainer> entities) -
close
public void close() -
getDataObjectModelByDefinitionId
-
getDataObjectDefinitionByDefinitionId
-