Package io.ebeaninternal.api
Class NaturalKeyQueryData<T>
- java.lang.Object
-
- io.ebeaninternal.api.NaturalKeyQueryData<T>
-
public class NaturalKeyQueryData<T> extends Object
Collects the data for processing the natural key cache processing.
-
-
Constructor Summary
Constructors Constructor Description NaturalKeyQueryData(BeanNaturalKey naturalKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
allHits()
Return the number of entries in the IN clause left remaining (to hit the DB with).NaturalKeySet
buildKeys()
Build and return the set of natural keys we will use.boolean
matchEq(String propName, Object bindValue)
Match for an EQ expression.boolean
matchIn(String propName, List<Object> inValues)
Match for IN expression.List<Pairs.Entry>
matchInPairs(String property0, String property1, List<Pairs.Entry> inPairs)
Match for In Pairs expression.List<T>
removeHits(BeanCacheResult<T> cacheResult)
Adjust the IN clause removing the hit entry.
-
-
-
Constructor Detail
-
NaturalKeyQueryData
public NaturalKeyQueryData(BeanNaturalKey naturalKey)
-
-
Method Detail
-
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.
-
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.
-
-