|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.graph.query.model.SetQuery
org.modeshape.jcr.query.qom.JcrSetQuery
public class JcrSetQuery
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.modeshape.graph.query.model.SetQuery |
---|
SetQuery.Operation |
Constructor Summary | |
---|---|
JcrSetQuery(JcrQueryCommand left,
SetQuery.Operation operation,
JcrQueryCommand right,
boolean all)
Create a set query involving the supplied left- and right-hand-side queries. |
|
JcrSetQuery(JcrQueryCommand left,
SetQuery.Operation operation,
JcrQueryCommand right,
boolean all,
List<? extends JcrOrdering> orderings,
JcrLimit limit)
Create a set query involving the supplied left- and right-hand-side queries. |
Method Summary | |
---|---|
List<? extends JcrColumn> |
columns()
Return the columns defining the query results. |
Column[] |
getColumns()
Gets the columns for this query. |
JcrQueryCommand |
getLeft()
Get the left-hand query. |
Limit |
getLimits()
Get the limits associated with this query. |
String |
getOperation()
Get the set operation for this query. |
Ordering[] |
getOrderings()
Gets the orderings for this query. |
JcrQueryCommand |
getRight()
Get the right-hand query. |
JcrQueryCommand |
left()
Get the left-hand query. |
JcrLimit |
limits()
Get the limits associated with this query. |
List<? extends JcrOrdering> |
orderings()
Return the orderings for this query. |
JcrQueryCommand |
right()
Get the right-hand query. |
JcrSetQuery |
withLimit(int rowLimit)
Create a copy of this query, but one that uses the supplied limit on the number of result rows. |
JcrSetQuery |
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.SetQuery |
---|
accept, adding, equals, hashCode, isAll, operation, toString, unionableColumns |
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.SetQuery |
---|
isAll |
Methods inherited from interface org.modeshape.graph.query.model.Visitable |
---|
accept |
Constructor Detail |
---|
public JcrSetQuery(JcrQueryCommand left, SetQuery.Operation operation, JcrQueryCommand right, boolean all)
left
- the left-hand-side query being combinedoperation
- the set operationright
- the right-hand-side query being combinedall
- true if all of the results should be included
IllegalArgumentException
- if the left-hand-side query, right-hand-side query, or operation are nullpublic JcrSetQuery(JcrQueryCommand left, SetQuery.Operation operation, JcrQueryCommand right, boolean all, List<? extends JcrOrdering> orderings, JcrLimit limit)
left
- the left-hand-side query being combinedoperation
- the set operationright
- the right-hand-side query being combinedall
- true if all of the results should be includedorderings
- the specification of the order of the result rows, or null if the results need not be orderedlimit
- the limit for the result rows, or null if there are no limits
IllegalArgumentException
- if the left-hand-side query, right-hand-side query, or operation are nullMethod Detail |
---|
public JcrQueryCommand left()
left
in class SetQuery
SetQuery.left()
public List<? extends JcrColumn> columns()
columns
in interface QueryCommand
columns
in class SetQuery
Query.columns()
public List<? extends JcrOrdering> orderings()
orderings
in interface QueryCommand
orderings
in class SetQuery
Query.orderings()
public JcrQueryCommand right()
right
in class SetQuery
SetQuery.right()
public JcrLimit limits()
limits
in interface QueryCommand
limits
in class SetQuery
unlimited
SetQuery.limits()
public Limit getLimits()
unlimited
QueryCommand.getLimits()
public JcrQueryCommand getLeft()
getLeft
in interface SetQuery
SetQuery.getLeft()
public JcrQueryCommand getRight()
getRight
in interface SetQuery
SetQuery.getRight()
public String getOperation()
getOperation
in interface SetQuery
SetQuery.getOperation()
public Column[] getColumns()
QueryCommand.getColumns()
public Ordering[] getOrderings()
QueryCommand.getOrderings()
public JcrSetQuery withLimit(int rowLimit)
withLimit
in interface QueryCommand
withLimit
in class SetQuery
rowLimit
- the limit that should be used; must be a positive number
SetQuery.withLimit(int)
public JcrSetQuery withOffset(int offset)
withOffset
in interface QueryCommand
withOffset
in class SetQuery
offset
- the limit that should be used; may not be negative
SetQuery.withOffset(int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |