public interface PresortDelegate
QueryWrapper
instances.Modifier and Type | Method and Description |
---|---|
void |
addSortCriterion(Resolvable sort)
Add a single sort criterion, in the form of a
Resolvable
object which is resolved at sort time. |
void |
addSortCriterion(Resolvable sort,
boolean descending)
Add a single sort criterion, in the form of a
Resolvable
object which is resolved at runtime. |
void |
enableBreakGroups()
Enable all sort criteria set for this query to act as break group
categories.
|
logical |
isFirst()
Determine whether the query result row currently being visited is the
first row in the presorted results list.
|
logical |
isFirstOfGroup(Resolvable key)
Determine whether the query result row currently being visited is the
first row within a break group whose category is identified by the
specified resolvable object.
|
logical |
isLast()
Determine whether the query result row currently being visited is the
last row in the presorted results list.
|
logical |
isLastOfGroup(Resolvable key)
Determine whether the query result row currently being visited is the
last row within a break group whose category is identified by the
specified resolvable object.
|
void addSortCriterion(Resolvable sort)
Resolvable
object which is resolved at sort time. It is the value of the resolved
result which is used for the sort.
The sort is ascending, from lowest resolved value to highest.
sort
- A resolvable object whose resolved result is used for sorting.void addSortCriterion(Resolvable sort, boolean descending)
Resolvable
object which is resolved at runtime. It is the value of the resolved
result which is used for the sort.descending
- if true
, the sort is descending, from highest
resolved value to lowest; otherwise, the sort is ascending.sort
- A resolvable object whose resolved result is used for sorting.void enableBreakGroups()
logical isFirst()
true
if the current result row is the first row,
else false
.logical isFirstOfGroup(Resolvable key)
key
- Break group category key. Must be the same object reference
as was specified previously when invoking one of the
addSortCriterion
method variants.true
if break groups are enabled and current row
is first in the specified break group;
false
if break groups have not been enabled or
current row is not first in the specified break group.logical isLast()
true
if the current result row is the last row,
else false
.logical isLastOfGroup(Resolvable key)
key
- Break group category key. Must be the same object reference
as was specified previously when invoking one of the
addSortCriterion
method variants.true
if break groups are enabled and current row
is last in the specified break group;
false
if break groups have not been enabled or
current row is not last in the specified break group.