## Uses of Interface
org.modeshape.jcr.api.query.qom.QueryCommand

- Packages that use QueryCommand
  Package | Description
  --- | ---
  org.modeshape.jcr.api.query.qom |
  org.modeshape.jcr.query.model | The Abstract Query Model is a vocabulary that can be used to construct a language-neutral representation of a query.

- - ### Uses of QueryCommand in org.modeshape.jcr.api.query.qom

    Subinterfaces of QueryCommand in org.modeshape.jcr.api.query.qom
    Modifier and Type | Interface and Description
    --- | ---
    `interface` | `SelectQuery` Represents a typical select-style query.
    `interface` | `SetQuery` Represents a set query.
    `interface` | `SetQueryObjectModel` A set query extension to the JCR query object model.

    Methods in org.modeshape.jcr.api.query.qom that return QueryCommand
    Modifier and Type | Method and Description
    --- | ---
    `QueryCommand` | SetQuery.`getLeft()` Get the left-hand query.
    `QueryCommand` | Subquery.`getQuery()` Gets the `QueryCommand` that makes up the subqery.
    `QueryCommand` | SetQuery.`getRight()` Get the right-hand query.

    Methods in org.modeshape.jcr.api.query.qom with parameters of type QueryCommand
    Modifier and Type | Method and Description
    --- | ---
    `SetQuery` | QueryObjectModelFactory.`except(QueryCommand left, QueryCommand right, Ordering[] orderings, Limit limit, boolean all)` Creates a query command that returns all rows that are in the result of the left-hand query but not in the result of the right-hand query.
    `SetQuery` | QueryObjectModelFactory.`intersect(QueryCommand left, QueryCommand right, Ordering[] orderings, Limit limit, boolean all)` Creates a query command that returns all rows that are both in the result of the left-hand query and in the result of the right-hand query.
    `Subquery` | QueryObjectModelFactory.`subquery(QueryCommand subqueryCommand)` Creates a subquery that can be used as a `StaticOperand` in another query.
    `SetQuery` | QueryObjectModelFactory.`union(QueryCommand left, QueryCommand right, Ordering[] orderings, Limit limit, boolean all)` Creates a query command that effectively appends the results of the right-hand query to those of the left-hand query.

  - ### Uses of QueryCommand in org.modeshape.jcr.query.model

    Subinterfaces of QueryCommand in org.modeshape.jcr.query.model
    Modifier and Type | Interface and Description
    --- | ---
    `interface` | `QueryCommand` Represents the abstract base class for all query commands.

    Classes in org.modeshape.jcr.query.model that implement QueryCommand
    Modifier and Type | Class and Description
    --- | ---
    `class` | `Query`
    `class` | `SelectQuery` An implementation of `SelectQuery`.
    `class` | `SetQuery` This object acts as a Set operator on multiple `queries`, such as performing UNION, INTERSECT, and EXCEPT operations.
    `class` | `SetQueryObjectModel` Implementation of `SetQueryObjectModel` that represents a `set query`.

    Methods in org.modeshape.jcr.query.model with parameters of type QueryCommand
    Modifier and Type | Method and Description
    --- | ---
    `SetQuery` | QueryObjectModelFactory.`except(QueryCommand left, QueryCommand right, Ordering[] orderings, Limit limit, boolean all)`
    `SetQuery` | QueryObjectModelFactory.`intersect(QueryCommand left, QueryCommand right, Ordering[] orderings, Limit limit, boolean all)`
    `SetQuery` | QueryObjectModelFactory.`setQuery(QueryCommand left, SetQuery.Operation operation, QueryCommand right, Ordering[] orderings, Limit limit, boolean all)`
    `Subquery` | QueryObjectModelFactory.`subquery(QueryCommand subqueryCommand)`
    `SetQuery` | QueryObjectModelFactory.`union(QueryCommand left, QueryCommand right, Ordering[] orderings, Limit limit, boolean all)`

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.