public interface QueryCommand extends Command, QueryCommand
Modifier and Type | Method and Description |
---|---|
List<? extends Column> |
columns()
Return the columns defining the query results.
|
List<? extends Ordering> |
orderings()
Return the orderings for this query.
|
QueryCommand |
withLimit(int rowLimit)
Create a copy of this query, but one that uses the supplied limit on the number of result rows.
|
QueryCommand |
withOffset(int offset)
Create a copy of this query, but one that uses the supplied offset.
|
getColumns, getLimits, getOrderings
List<? extends Ordering> orderings()
List<? extends Column> columns()
QueryCommand withLimit(int rowLimit)
rowLimit
- the limit that should be used; must be a positive numberQueryCommand withOffset(int offset)
offset
- the limit that should be used; may not be negativeCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.