Interface CachedEntityMatcher<EntityImpl extends Entity>
-
- All Known Implementing Classes:
CachedEntityMatcherAdapter,DeadLetterJobsByExecutionIdMatcher,EventSubscriptionsByExecutionAndTypeMatcher,EventSubscriptionsByExecutionIdMatcher,EventSubscriptionsByNameMatcher,EventSubscriptionsByProcInstTypeAndActivityMatcher,ExecutionByProcessInstanceMatcher,ExecutionsByParentExecutionIdAndActivityIdEntityMatcher,ExecutionsByParentExecutionIdEntityMatcher,ExecutionsByProcessInstanceIdEntityMatcher,ExecutionsByRootProcessInstanceMatcher,ExecutionsWithSameRootProcessInstanceIdMatcher,HistoricIdentityLinksByProcInstMatcher,HistoricVariableInstanceByProcInstMatcher,HistoricVariableInstanceByTaskIdMatcher,IdentityLinksByProcInstMatcher,InactiveExecutionsByProcInstMatcher,InactiveExecutionsInActivityAndProcInstMatcher,InactiveExecutionsInActivityMatcher,JobsByExecutionIdMatcher,MessageEventSubscriptionsByProcInstAndEventNameMatcher,ProcessInstancesByProcessDefinitionMatcher,SignalEventSubscriptionByEventNameMatcher,SignalEventSubscriptionByNameAndExecutionMatcher,SignalEventSubscriptionByProcInstAndEventNameMatcher,SuspendedJobsByExecutionIdMatcher,TasksByExecutionIdMatcher,TimerJobsByExecutionIdMatcher,UnfinishedHistoricActivityInstanceMatcher,VariableByExecutionIdMatcher
@Internal public interface CachedEntityMatcher<EntityImpl extends Entity>
Interface to express a condition whether or not a cached entity should be used in the return result of a query.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisRetained(java.util.Collection<EntityImpl> databaseEntities, java.util.Collection<CachedEntity> cachedEntities, EntityImpl entity, java.lang.Object param)Returns true if an entity from the cache should be retained (i.e.
-
-
-
Method Detail
-
isRetained
boolean isRetained(java.util.Collection<EntityImpl> databaseEntities, java.util.Collection<CachedEntity> cachedEntities, EntityImpl entity, java.lang.Object param)
Returns 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.
-
-