Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.modeshape.jcr.query.qom
Class JcrQueryObjectModel

    java.lang.Object
      org.modeshape.jcr.query.qom.JcrAbstractQuery
          org.modeshape.jcr.query.JcrQuery
              org.modeshape.jcr.query.qom.JcrQueryObjectModel

All Implemented Interfaces:
  QueryObjectModel, Query

    public class JcrQueryObjectModel

extends JcrQuery
implements QueryObjectModel

Implementation of `QueryObjectModel` that represents a `select query`.

Field Summary

Fields inherited from class org.modeshape.jcr.query.qom.JcrAbstractQuery
`context, language, statement`

Fields inherited from interface javax.jcr.query.Query
`JCR_JQOM, JCR_SQL2, SQL, XPATH`

Constructor Summary
`JcrQueryObjectModel(JcrQueryContext context, String statement, String language, JcrSelectQuery query, PlanHints hints, Path storedAtPath)` Creates a new JCR `Query` by specifying the query statement itself, the language in which the query is stated, the `QueryCommand` representation and, optionally, the node from which the query was loaded.

Method Summary
`Column[]` | `getColumns()`
`Constraint` | `getConstraint()`
`Ordering[]` | `getOrderings()`
`Source` | `getSource()`
`protected JcrSelectQuery` | `query()`

Methods inherited from class org.modeshape.jcr.query.JcrQuery
`bindValue, execute, getAbstractQueryModel, getBindVariableNames, setLimit, setOffset, toString, variableNames`

Methods inherited from class org.modeshape.jcr.query.qom.JcrAbstractQuery
`checkForProblems, context, getLanguage, getStatement, getStoredQueryPath, pathFor, storeAsNode`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Methods inherited from interface javax.jcr.query.Query
`bindValue, execute, getBindVariableNames, getLanguage, getStatement, getStoredQueryPath, setLimit, setOffset, storeAsNode`

Constructor Detail

### JcrQueryObjectModel

    public JcrQueryObjectModel(JcrQueryContext context,
                               String statement,
                               String language,
                               JcrSelectQuery query,
                               PlanHints hints,
                               Path storedAtPath)

  Creates a new JCR `Query` by specifying the query statement itself, the language in which the query is stated, the `QueryCommand` representation and, optionally, the node from which the query was loaded. The language must be a string from among those returned by `QueryManager#getSupportedQueryLanguages()`.

  Parameters:
    `context` - the context that was used to create this query and that will be used to execute this query; may not be null
    `statement` - the original statement as supplied by the client; may not be null
    `language` - the language obtained from the `QueryParser`; may not be null
    `query` - the parsed query representation; may not be null
    `hints` - any hints that are to be used; may be null if there are no hints
    `storedAtPath` - the path at which this query was stored, or null if this is not a stored query

Method Detail

### query

    protected JcrSelectQuery query()

  Overrides:
    `query` in class `JcrQuery`

### getSource

    public Source getSource()

  Specified by:
    `getSource` in interface `QueryObjectModel`
  See Also:
    `QueryObjectModel.getSource()`

### getConstraint

    public Constraint getConstraint()

  Specified by:
    `getConstraint` in interface `QueryObjectModel`
  See Also:
    `QueryObjectModel.getConstraint()`

### getColumns

    public Column[] getColumns()

  Specified by:
    `getColumns` in interface `QueryObjectModel`
  See Also:
    `QueryObjectModel.getColumns()`

### getOrderings

    public Ordering[] getOrderings()

  Specified by:
    `getOrderings` in interface `QueryObjectModel`
  See Also:
    `QueryObjectModel.getOrderings()`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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