|
||||||||||
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 nullMethod Detail |
---|
public JcrLimit limits()
limits
in interface QueryCommand
limits
in class Query
unlimited
Query.limits()
public JcrConstraint constraint()
constraint
in class Query
Query.constraint()
public JcrSource source()
source
in class Query
Query.source()
public List<? extends JcrColumn> columns()
columns
in interface QueryCommand
columns
in class Query
Query.columns()
public List<? extends JcrOrdering> orderings()
orderings
in interface QueryCommand
orderings
in class Query
Query.orderings()
public Constraint getConstraint()
getConstraint
in interface SelectQuery
SelectQuery.getConstraint()
public Source getSource()
getSource
in interface SelectQuery
SelectQuery.getSource()
public Limit getLimits()
unlimited
QueryCommand.getLimits()
public Column[] getColumns()
QueryCommand.getColumns()
public Ordering[] getOrderings()
QueryCommand.getOrderings()
public Query withLimit(int rowLimit)
withLimit
in interface QueryCommand
withLimit
in class Query
rowLimit
- the limit that should be used; must be a positive number
Query.withLimit(int)
public Query withOffset(int offset)
withOffset
in interface QueryCommand
withOffset
in class Query
offset
- 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 |