|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExtendedFinderSupport<Type,ExtendedFinder extends Finder<Type>>
A utility interface for creating extended Finder
s, it provides automatic covariant return types. MAke your
extended Finder
interface to extend from this. For instance, a custom Date
finder can be declared as:
public class DateFinder extends ExtendedFinderSupport{ public DateFinder before (Date date); public DateFinder after (Date date); }
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface it.tidalwave.util.Finder |
---|
Finder.FilterSortCriterion<Type>, Finder.SortCriterion, Finder.SortDirection |
Method Summary | |
---|---|
ExtendedFinder |
from(int firstResult)
Tells the Finder that only a subset of found items will be returned, starting from the given position. |
ExtendedFinder |
max(int maxResults)
Tells the Finder that only a maximum number of found items will be returned. |
ExtendedFinder |
sort(Finder.SortCriterion criterion)
Tells the Finder that results will be sorted according to the given criterion, in ascending direction. |
ExtendedFinder |
sort(Finder.SortCriterion criterion,
Finder.SortDirection direction)
Tells the Finder that results will be sorted according to the given criterion and direction. |
Methods inherited from interface it.tidalwave.util.Finder |
---|
count, firstResult, ofType, result, results |
Method Detail |
---|
@Nonnull ExtendedFinder from(@Nonnegative int firstResult)
Finder
that only a subset of found items will be returned, starting from the given position.
from
in interface Finder<Type>
Finder
@Nonnull ExtendedFinder max(@Nonnegative int maxResults)
Finder
that only a maximum number of found items will be returned.
max
in interface Finder<Type>
Finder
@Nonnull ExtendedFinder sort(@Nonnull Finder.SortCriterion criterion)
Finder
that results will be sorted according to the given criterion, in ascending direction.
sort
in interface Finder<Type>
criterion
- the sort criterion
Finder
@Nonnull ExtendedFinder sort(@Nonnull Finder.SortCriterion criterion, @Nonnull Finder.SortDirection direction)
Finder
that results will be sorted according to the given criterion and direction.
sort
in interface Finder<Type>
criterion
- the sort criteriondirection
- the sort direction
Finder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |