org.modeshape.jcr.api.query.qom

## Interface QueryCommand

- All Known Subinterfaces:
    QueryCommand, SelectQuery, SetQuery, SetQueryObjectModel
  All Known Implementing Classes:
    Query, SelectQuery, SetQuery, SetQueryObjectModel

      public interface QueryCommand

  Represents the abstract base class for all query commands. Subclasses include `SetQuery` and `SelectQuery`.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Column[]` | `getColumns()` Gets the columns for this query.
    `Limit` | `getLimits()` Get the limits associated with this query.
    `Ordering[]` | `getOrderings()` Gets the orderings for this query.

- - ### Method Detail

    - #### getOrderings

          Ordering[] getOrderings()

      Gets the orderings for this query.
      Returns:
        an array of zero or more orderings; non-null

    - #### getColumns

          Column[] getColumns()

      Gets the columns for this query.
      Returns:
        an array of zero or more columns; non-null

    - #### getLimits

          Limit getLimits()

      Get the limits associated with this query.
      Returns:
        the limits; never null but possibly `unlimited`

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