public class QueryObjectModel extends JcrQuery implements QueryObjectModel
QueryObjectModel
that represents a select query
.context, language, statement
FULL_TEXT_SEARCH
Constructor and Description |
---|
QueryObjectModel(JcrQueryContext context,
String statement,
String language,
SelectQuery 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. |
Modifier and Type | Method and Description |
---|---|
Column[] |
getColumns() |
Constraint |
getConstraint() |
Ordering[] |
getOrderings() |
Source |
getSource() |
protected SelectQuery |
query() |
bindValue, cancel, execute, explain, getAbstractQueryModel, getAbstractQueryModelRepresentation, getBindVariableNames, includeSystemContent, setLimit, setOffset, toString, variableNames
checkForProblems, context, getLanguage, getStatement, getStoredQueryPath, pathFor, storeAsNode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
bindValue, execute, getBindVariableNames, getLanguage, getStatement, getStoredQueryPath, setLimit, setOffset, storeAsNode
public QueryObjectModel(JcrQueryContext context, String statement, String language, SelectQuery query, PlanHints hints, Path storedAtPath)
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()
.context
- the context that was used to create this query and that will be used to execute this query; may not be nullstatement
- the original statement as supplied by the client; may not be nulllanguage
- the language obtained from the QueryParser
; may not be nullquery
- the parsed query representation; may not be nullhints
- any hints that are to be used; may be null if there are no hintsstoredAtPath
- the path at which this query was stored, or null if this is not a stored queryprotected SelectQuery query()
public Source getSource()
getSource
in interface QueryObjectModel
public Constraint getConstraint()
getConstraint
in interface QueryObjectModel
public Column[] getColumns()
getColumns
in interface QueryObjectModel
public Ordering[] getOrderings()
getOrderings
in interface QueryObjectModel
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.