Class CacheIdLookupMany<T>

java.lang.Object
io.ebeaninternal.api.CacheIdLookupMany<T>
All Implemented Interfaces:
CacheIdLookup<T>

public final class CacheIdLookupMany<T> extends Object implements CacheIdLookup<T>
Used for bean cache lookup with where ids in expression.
  • Constructor Details

    • CacheIdLookupMany

      public CacheIdLookupMany(IdInCommon idInExpression)
  • Method Details

    • idValues

      public Collection<?> idValues()
      Return the Id values for the in expression.
      Specified by:
      idValues in interface CacheIdLookup<T>
    • removeHits

      public List<T> removeHits(BeanCacheResult<T> cacheResult)
      Process the hits returning the beans fetched from cache and adjusting the in expression (to not fetch the hits).
      Specified by:
      removeHits in interface CacheIdLookup<T>
    • allHits

      public boolean allHits()
      Description copied from interface: CacheIdLookup
      Return true if all beans where found in L2 cache.
      Specified by:
      allHits in interface CacheIdLookup<T>