|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.jcr.query.qom.JcrAbstractQuery
org.modeshape.jcr.query.JcrQuery
@NotThreadSafe public class JcrQuery
Implementation of Query
that represents a query command
.
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 | |
---|---|
JcrQuery(JcrQueryContext context,
String statement,
String language,
QueryCommand 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 | |
---|---|
void |
bindValue(String varName,
Value value)
|
QueryResult |
execute()
|
QueryCommand |
getAbstractQueryModel()
Get the underlying and immutable Abstract Query Model representation of this query. |
String[] |
getBindVariableNames()
|
protected QueryCommand |
query()
|
void |
setLimit(long limit)
|
void |
setOffset(long offset)
|
String |
toString()
|
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 |
Constructor Detail |
---|
public JcrQuery(JcrQueryContext context, String statement, String language, QueryCommand 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 queryMethod Detail |
---|
protected QueryCommand query()
public QueryCommand getAbstractQueryModel()
public QueryResult execute() throws RepositoryException
RepositoryException
Query.execute()
public String toString()
toString
in class Object
Object.toString()
public void bindValue(String varName, Value value) throws IllegalArgumentException, RepositoryException
IllegalArgumentException
RepositoryException
Query.bindValue(java.lang.String, javax.jcr.Value)
public String[] getBindVariableNames()
Query.getBindVariableNames()
public void setLimit(long limit)
Query.setLimit(long)
public void setOffset(long offset)
Query.setOffset(long)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |