- All Implemented Interfaces:
- Direct Known Subclasses:
- QueryObjectModel, SetQueryObjectModel
public class JcrQuery
- extends JcrAbstractQuery
Query that represents a
public JcrQuery(JcrQueryContext context,
- 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
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
protected QueryCommand query()
public QueryCommand getAbstractQueryModel()
- Get the underlying and immutable Abstract Query Model representation of this query.
- the AQM representation; never null
public QueryResult execute()
- See Also:
public boolean cancel()
- Description copied from interface:
- Signal that the query, if currently
executing, should be cancelled and stopped (with an exception).
This method does not block until the query is actually stopped.
- true if the query was executing and will be cancelled, or false if the query was no longer running (because it had
finished successfully or had already been cancelled) and could not be cancelled.
public String toString()
toString in class
- See Also:
public void bindValue(String varName,
public String getBindVariableNames()
protected final Set<String> variableNames()
public void setLimit(long limit)
public void setOffset(long offset)
Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.