Class CachedEntityMatcherAdapter<EntityImpl extends Entity>
- java.lang.Object
-
- org.flowable.common.engine.impl.persistence.cache.CachedEntityMatcherAdapter<EntityImpl>
-
- All Implemented Interfaces:
CachedEntityMatcher<EntityImpl>
public abstract class CachedEntityMatcherAdapter<EntityImpl extends Entity> extends Object implements CachedEntityMatcher<EntityImpl>
- Author:
- Joram Barrez
-
-
Constructor Summary
Constructors Constructor Description CachedEntityMatcherAdapter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract booleanisRetained(EntityImpl entity, Object param)booleanisRetained(Collection<EntityImpl> databaseEntities, Collection<CachedEntity> cachedEntities, EntityImpl entity, Object param)Returns true if an entity from the cache should be retained (i.e.
-
-
-
Method Detail
-
isRetained
public boolean isRetained(Collection<EntityImpl> databaseEntities, Collection<CachedEntity> cachedEntities, EntityImpl entity, 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<EntityImpl extends Entity>
-
isRetained
public abstract boolean isRetained(EntityImpl entity, Object param)
-
-