|
ModeShape Distribution 3.0.0.CR2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.jcr.query.model.Query
org.modeshape.jcr.query.model.SelectQuery
public class SelectQuery
An implementation of SelectQuery.
| Field Summary |
|---|
| Fields inherited from class org.modeshape.jcr.query.model.Query |
|---|
IS_DISTINCT_DEFAULT |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.modeshape.jcr.query.model.Query |
|---|
accept, adding, adding, columns, constrainedBy, constraint, distinct, equals, getColumns, getLimits, getOrderings, hashCode, isDistinct, noDistinct, orderedBy, orderings, returning, source, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.modeshape.jcr.api.query.qom.QueryCommand |
|---|
getColumns, getLimits, getOrderings |
| Constructor Detail |
|---|
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 results
IllegalArgumentException - if the source is null| Method Detail |
|---|
public Constraint getConstraint()
SelectQuery
getConstraint in interface SelectQuerypublic Source getSource()
SelectQuery
getSource in interface SelectQuerypublic Query withLimit(int rowLimit)
QueryCommand
withLimit in class QueryrowLimit - the limit that should be used; must be a positive number
public Query withOffset(int offset)
QueryCommand
withOffset in class Queryoffset - the limit that should be used; may not be negative
|
ModeShape Distribution 3.0.0.CR2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||