|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OrderProvider
A query that can be ordered and limited
Method Summary | |
---|---|
void |
addLimit(int numberOfRows)
Limit the results of this select This is the same as calling addLimit(int, int) with offset = 0 |
void |
addLimit(int offset,
int numberOfRows)
Limit the results of this select Note that some dialects do not support bind values at all in LIMIT or TOP clauses! |
void |
addLimit(int offset,
Param<Integer> numberOfRows)
Limit the results of this select using named parameters Note that some dialects do not support bind values at all in LIMIT or TOP clauses! |
void |
addLimit(Param<Integer> numberOfRows)
Limit the results of this select using named parameters Note that some dialects do not support bind values at all in LIMIT or TOP clauses! |
void |
addLimit(Param<Integer> offset,
int numberOfRows)
Limit the results of this select Note that some dialects do not support bind values at all in LIMIT or TOP clauses! |
void |
addLimit(Param<Integer> offset,
Param<Integer> numberOfRows)
Limit the results of this select using named parameters Note that some dialects do not support bind values at all in LIMIT or TOP clauses! |
void |
addOrderBy(Collection<SortField<?>> fields)
Adds ordering fields |
void |
addOrderBy(Field<?>... fields)
Adds ordering fields, ordering by the default sort order |
void |
addOrderBy(int... fieldIndexes)
Adds ordering fields Indexes start at 1 in SQL! |
void |
addOrderBy(SortField<?>... fields)
Adds ordering fields |
Method Detail |
---|
void addOrderBy(Field<?>... fields)
fields
- The ordering fieldsvoid addOrderBy(SortField<?>... fields)
fields
- The ordering fieldsvoid addOrderBy(Collection<SortField<?>> fields)
fields
- The ordering fieldsvoid addOrderBy(int... fieldIndexes)
Indexes start at 1
in SQL!
Note, you can use addOrderBy(Factory.val(1).desc())
or
addOrderBy(Factory.literal(1).desc())
to apply descending
ordering
fieldIndexes
- The ordering fieldsvoid addLimit(int numberOfRows)
This is the same as calling addLimit(int, int)
with offset = 0
numberOfRows
- The number of rows to returnvoid addLimit(Param<Integer> numberOfRows)
Note that some dialects do not support bind values at all in
LIMIT
or TOP
clauses!
If there is no LIMIT
or TOP
clause in your
RDBMS, or the LIMIT
or TOP
clause does not
support bind values, this may be simulated with a
ROW_NUMBER()
window function and nested SELECT
statements.
This is the same as calling addLimit(int, int)
with offset = 0
numberOfRows
- The number of rows to returnvoid addLimit(int offset, int numberOfRows)
Note that some dialects do not support bind values at all in
LIMIT
or TOP
clauses!
If there is no LIMIT
or TOP
clause in your
RDBMS, or if your RDBMS does not natively support offsets, this is
simulated with a ROW_NUMBER()
window function and nested
SELECT
statements.
offset
- The lowest offset starting at 0numberOfRows
- The number of rows to returnvoid addLimit(Param<Integer> offset, int numberOfRows)
Note that some dialects do not support bind values at all in
LIMIT
or TOP
clauses!
If there is no LIMIT
or TOP
clause in your
RDBMS, or the LIMIT
or TOP
clause does not
support bind values, or if your RDBMS does not natively support offsets,
this may be simulated with a ROW_NUMBER()
window function
and nested SELECT
statements.
offset
- The lowest offset starting at 0numberOfRows
- The number of rows to returnvoid addLimit(int offset, Param<Integer> numberOfRows)
Note that some dialects do not support bind values at all in
LIMIT
or TOP
clauses!
If there is no LIMIT
or TOP
clause in your
RDBMS, or the LIMIT
or TOP
clause does not
support bind values, or if your RDBMS does not natively support offsets,
this may be simulated with a ROW_NUMBER()
window function
and nested SELECT
statements.
offset
- The lowest offset starting at 0numberOfRows
- The number of rows to returnvoid addLimit(Param<Integer> offset, Param<Integer> numberOfRows)
Note that some dialects do not support bind values at all in
LIMIT
or TOP
clauses!
If there is no LIMIT
or TOP
clause in your
RDBMS, or the LIMIT
or TOP
clause does not
support bind values, or if your RDBMS does not natively support offsets,
this may be simulated with a ROW_NUMBER()
window function
and nested SELECT
statements.
offset
- The lowest offset starting at 0numberOfRows
- The number of rows to return
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |