public interface RangeCapableRepository<T,ID extends java.io.Serializable & java.lang.Comparable<ID>>
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<T> |
findAllInRange(ID from,
boolean fromInclusive,
ID to,
boolean toInclusive)
Return entities whose ids range between
from and to . |
java.lang.Iterable<T> findAllInRange(ID from, boolean fromInclusive, ID to, boolean toInclusive)
from
and to
. Note that it is possible that entities with
those exact ids do not exist. If they do exist, the two boolean parameters control whether to include those
results or not. A query from x
to x
returns an empty result, unless both fromInclusive
and toInclusive
are true.