|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.graph.query.model.Query
org.modeshape.jcr.query.qom.JcrSelectQuery
public class JcrSelectQuery
| Field Summary |
|---|
| Fields inherited from class org.modeshape.graph.query.model.Query |
|---|
IS_DISTINCT_DEFAULT |
| Constructor Summary | |
|---|---|
JcrSelectQuery(JcrSource source,
JcrConstraint constraint,
List<? extends JcrOrdering> orderings,
List<? extends JcrColumn> columns,
JcrLimit limit,
boolean isDistinct)
Create a new query that uses the supplied source, constraint, orderings, columns and limits. |
|
| Method Summary | |
|---|---|
List<? extends JcrColumn> |
columns()
Return the columns defining the query results. |
JcrConstraint |
constraint()
Get the constraints, if there are any. |
Column[] |
getColumns()
Gets the columns for this query. |
Constraint |
getConstraint()
Gets the constraint for this query. |
Limit |
getLimits()
Get the limits associated with this query. |
Ordering[] |
getOrderings()
Gets the orderings for this query. |
Source |
getSource()
Gets the node-tuple source for this query. |
JcrLimit |
limits()
Get the limits associated with this query. |
List<? extends JcrOrdering> |
orderings()
Return the orderings for this query. |
JcrSource |
source()
Get the source for the results. |
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.graph.query.model.Query |
|---|
accept, adding, adding, constrainedBy, distinct, equals, hashCode, isDistinct, noDistinct, orderedBy, returning, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.modeshape.graph.query.model.Visitable |
|---|
accept |
| Constructor Detail |
|---|
public JcrSelectQuery(JcrSource source,
JcrConstraint constraint,
List<? extends JcrOrdering> orderings,
List<? extends JcrColumn> columns,
JcrLimit 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 JcrLimit limits()
limits in interface QueryCommandlimits in class QueryunlimitedQuery.limits()public JcrConstraint constraint()
constraint in class QueryQuery.constraint()public JcrSource source()
source in class QueryQuery.source()public List<? extends JcrColumn> columns()
columns in interface QueryCommandcolumns in class QueryQuery.columns()public List<? extends JcrOrdering> orderings()
orderings in interface QueryCommandorderings in class QueryQuery.orderings()public Constraint getConstraint()
getConstraint in interface SelectQuerySelectQuery.getConstraint()public Source getSource()
getSource in interface SelectQuerySelectQuery.getSource()public Limit getLimits()
unlimitedQueryCommand.getLimits()public Column[] getColumns()
QueryCommand.getColumns()public Ordering[] getOrderings()
QueryCommand.getOrderings()public Query withLimit(int rowLimit)
withLimit in interface QueryCommandwithLimit in class QueryrowLimit - the limit that should be used; must be a positive number
Query.withLimit(int)public Query withOffset(int offset)
withOffset in interface QueryCommandwithOffset in class Queryoffset - the limit that should be used; may not be negative
Query.withOffset(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||