Class ExecutionsWithSameRootProcessInstanceIdMatcher
- java.lang.Object
-
- org.activiti.engine.impl.persistence.entity.data.impl.cachematcher.ExecutionsWithSameRootProcessInstanceIdMatcher
-
- All Implemented Interfaces:
CachedEntityMatcher<ExecutionEntity>
public class ExecutionsWithSameRootProcessInstanceIdMatcher extends java.lang.Object implements CachedEntityMatcher<ExecutionEntity>
-
-
Constructor Summary
Constructors Constructor Description ExecutionsWithSameRootProcessInstanceIdMatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutionEntitygetMatchingExecution(java.util.Collection<ExecutionEntity> databaseEntities, java.util.Collection<CachedEntity> cachedEntities, java.lang.String executionId)booleanisRetained(java.util.Collection<ExecutionEntity> databaseEntities, java.util.Collection<CachedEntity> cachedEntities, ExecutionEntity entity, java.lang.Object param)Returns true if an entity from the cache should be retained (i.e.
-
-
-
Method Detail
-
isRetained
public boolean isRetained(java.util.Collection<ExecutionEntity> databaseEntities, java.util.Collection<CachedEntity> cachedEntities, ExecutionEntity entity, java.lang.Object param)
Description copied from interface:CachedEntityMatcherReturns true if an entity from the cache should be retained (i.e. used as return result for a query). Most implementations of this interface probably don't need this method, and should extend the simplerCachedEntityMatcherAdapter, which hides this method. Note that the databaseEntities collection can be null, in case only the cache is checked.- Specified by:
isRetainedin interfaceCachedEntityMatcher<ExecutionEntity>
-
getMatchingExecution
public ExecutionEntity getMatchingExecution(java.util.Collection<ExecutionEntity> databaseEntities, java.util.Collection<CachedEntity> cachedEntities, java.lang.String executionId)
-
-