public class SelectQuery extends Query implements SelectQuery
SelectQuery.IS_DISTINCT_DEFAULT| Constructor and Description |
|---|
SelectQuery(Source source,
Constraint constraint,
List<? extends Ordering> orderings,
List<? extends Column> columns,
Limit limit,
boolean isDistinct)
Create a new query that uses the supplied source, constraint, orderings, columns and limits.
|
| Modifier and Type | Method and Description |
|---|---|
Constraint |
getConstraint()
Gets the constraint for this query.
|
Source |
getSource()
Gets the node-tuple source for this query.
|
Query |
withLimit(int rowLimit)
Create a copy of this query, but one that uses the supplied limit on the number of result rows.
|
Query |
withOffset(int offset)
Create a copy of this query, but one that uses the supplied offset.
|
accept, adding, adding, columns, constrainedBy, constraint, distinct, equals, getColumns, getLimits, getOrderings, hashCode, isDistinct, noDistinct, orderedBy, orderings, returning, source, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetColumns, getLimits, getOrderingspublic SelectQuery(Source source, Constraint constraint, List<? extends Ordering> orderings, List<? extends Column> columns, Limit limit, boolean isDistinct)
source - the sourceconstraint - the constraint (or composite constraint), or null or empty if there are no constraintsorderings - the specifications of how the results are to be ordered, or null if the order is to be implementation
determinedcolumns - the columns to be included in the results, or null or empty if there are no explicit columns and the actual
result columns are to be implementation determiendlimit - the limit for the results, or null if all of the results are to be includedisDistinct - true if duplicates are to be removed from the resultsIllegalArgumentException - if the source is nullpublic Constraint getConstraint()
SelectQuerygetConstraint in interface SelectQuerypublic Source getSource()
SelectQuerygetSource in interface SelectQuerypublic Query withLimit(int rowLimit)
QueryCommandpublic Query withOffset(int offset)
QueryCommandwithOffset in class Queryoffset - the limit that should be used; may not be negativeCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.