Class CachedEntityMatcherAdapter<EntityImpl extends Entity>

    • Constructor Detail

      • CachedEntityMatcherAdapter

        public CachedEntityMatcherAdapter()
    • Method Detail

      • isRetained

        public boolean isRetained​(java.util.Collection<EntityImpl> databaseEntities,
                                  java.util.Collection<CachedEntity> cachedEntities,
                                  EntityImpl entity,
                                  java.lang.Object param)
        Description copied from interface: CachedEntityMatcher
        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 simpler CachedEntityMatcherAdapter, which hides this method. Note that the databaseEntities collection can be null, in case only the cache is checked.
        Specified by:
        isRetained in interface CachedEntityMatcher<EntityImpl extends Entity>
      • isRetained

        public abstract boolean isRetained​(EntityImpl entity,
                                           java.lang.Object param)