Skip to content

Commit ba7ca43

Browse files
committed
Remove EntityLinksWithSameRootScopeForScopeIdAndScopeTypeMatcher since we do not need a cache matcher for this particular call
1 parent 53785f3 commit ba7ca43

File tree

3 files changed

+2
-80
lines changed

3 files changed

+2
-80
lines changed

modules/flowable-entitylink-service/src/main/java/org/flowable/entitylink/service/impl/persistence/entity/data/impl/MybatisEntityLinkDataManager.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import org.flowable.entitylink.service.impl.persistence.entity.data.EntityLinkDataManager;
2929
import org.flowable.entitylink.service.impl.persistence.entity.data.impl.cachematcher.EntityLinksByRootScopeIdAndTypeMatcher;
3030
import org.flowable.entitylink.service.impl.persistence.entity.data.impl.cachematcher.EntityLinksByScopeIdAndTypeMatcher;
31-
import org.flowable.entitylink.service.impl.persistence.entity.data.impl.cachematcher.EntityLinksWithSameRootScopeForScopeIdAndScopeTypeMatcher;
3231

3332
/**
3433
* @author Tijs Rademakers
@@ -37,7 +36,6 @@ public class MybatisEntityLinkDataManager extends AbstractDataManager<EntityLink
3736

3837
protected CachedEntityMatcher<EntityLinkEntity> entityLinksByScopeIdAndTypeMatcher = new EntityLinksByScopeIdAndTypeMatcher();
3938
protected CachedEntityMatcher<EntityLinkEntity> entityLinksByRootScopeIdAndScopeTypeMatcher = new EntityLinksByRootScopeIdAndTypeMatcher();
40-
protected CachedEntityMatcher<EntityLinkEntity> entityLinksWithSameRootByScopeIdAndTypeMatcher = new EntityLinksWithSameRootScopeForScopeIdAndScopeTypeMatcher<>();
4139

4240
protected EntityLinkServiceConfiguration entityLinkServiceConfiguration;
4341

@@ -62,7 +60,7 @@ public List<EntityLink> findEntityLinksWithSameRootScopeForScopeIdAndScopeType(S
6260
parameters.put("scopeId", scopeId);
6361
parameters.put("scopeType", scopeType);
6462
parameters.put("linkType", linkType);
65-
return (List) getList("selectEntityLinksWithSameRootScopeByScopeIdAndType", parameters, entityLinksWithSameRootByScopeIdAndTypeMatcher, true);
63+
return (List) getList("selectEntityLinksWithSameRootScopeByScopeIdAndType", parameters);
6664
}
6765

6866
@Override

modules/flowable-entitylink-service/src/main/java/org/flowable/entitylink/service/impl/persistence/entity/data/impl/MybatisHistoricEntityLinkDataManager.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,12 @@
2828
import org.flowable.entitylink.service.impl.persistence.entity.HistoricEntityLinkEntity;
2929
import org.flowable.entitylink.service.impl.persistence.entity.HistoricEntityLinkEntityImpl;
3030
import org.flowable.entitylink.service.impl.persistence.entity.data.HistoricEntityLinkDataManager;
31-
import org.flowable.entitylink.service.impl.persistence.entity.data.impl.cachematcher.EntityLinksWithSameRootScopeForScopeIdAndScopeTypeMatcher;
3231

3332
/**
3433
* @author Joram Barrez
3534
*/
3635
public class MybatisHistoricEntityLinkDataManager extends AbstractDataManager<HistoricEntityLinkEntity> implements HistoricEntityLinkDataManager {
3736

38-
protected CachedEntityMatcher<HistoricEntityLinkEntity> entityLinksWithSameRootByScopeIdAndTypeMatcher = new EntityLinksWithSameRootScopeForScopeIdAndScopeTypeMatcher<>();
39-
4037
protected EntityLinkServiceConfiguration entityLinkServiceConfiguration;
4138

4239
public MybatisHistoricEntityLinkDataManager(EntityLinkServiceConfiguration entityLinkServiceConfiguration) {
@@ -61,7 +58,7 @@ public List<HistoricEntityLink> findHistoricEntityLinksWithSameRootScopeForScope
6158
parameters.put("scopeType", scopeType);
6259
parameters.put("linkType", linkType);
6360

64-
return (List) getList("selectHistoricEntityLinksWithSameRootScopeByScopeIdAndType", parameters, entityLinksWithSameRootByScopeIdAndTypeMatcher, true);
61+
return (List) getList("selectHistoricEntityLinksWithSameRootScopeByScopeIdAndType", parameters);
6562
}
6663

6764
@Override

modules/flowable-entitylink-service/src/main/java/org/flowable/entitylink/service/impl/persistence/entity/data/impl/cachematcher/EntityLinksWithSameRootScopeForScopeIdAndScopeTypeMatcher.java

-73
This file was deleted.

0 commit comments

Comments
 (0)