Class NaturalKeyQueryData<T>

java.lang.Object
io.ebeaninternal.api.NaturalKeyQueryData<T>

public final class NaturalKeyQueryData<T> extends Object
Collects the data for processing the natural key cache processing.
  • Constructor Details

    • NaturalKeyQueryData

      public NaturalKeyQueryData(BeanNaturalKey naturalKey)
  • Method Details

    • matchInPairs

      public List<Pairs.Entry> matchInPairs(String property0, String property1, List<Pairs.Entry> inPairs)
      Match for In Pairs expression. We only allow one IN clause.
    • matchIn

      public boolean matchIn(String propName, List<Object> inValues)
      Match for IN expression. We only allow one IN clause.
    • matchEq

      public boolean matchEq(String propName, Object bindValue)
      Match for an EQ expression.
    • buildKeys

      public NaturalKeySet buildKeys()
      Build and return the set of natural keys we will use.
    • allHits

      public boolean allHits()
      Return the number of entries in the IN clause left remaining (to hit the DB with).
    • removeHits

      public List<T> removeHits(BeanCacheResult<T> cacheResult)
      Adjust the IN clause removing the hit entry.