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, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getColumns, getLimits, getOrderings
public 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()
SelectQuery
getConstraint
in interface SelectQuery
public Source getSource()
SelectQuery
getSource
in interface SelectQuery
public Query withLimit(int rowLimit)
QueryCommand
public Query withOffset(int offset)
QueryCommand
withOffset
in class Query
offset
- the limit that should be used; may not be negativeCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.