Modifier and Type | Field and Description |
---|---|
protected JcrQueryContext |
context |
protected String |
language |
protected String |
statement |
FULL_TEXT_SEARCH
Modifier | Constructor and Description |
---|---|
protected |
JcrAbstractQuery(JcrQueryContext context,
String statement,
String language,
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 |
---|---|
protected void |
checkForProblems(Problems problems) |
protected JcrQueryContext |
context() |
String |
getLanguage() |
String |
getStatement() |
String |
getStoredQueryPath() |
protected Path |
pathFor(String path) |
Node |
storeAsNode(String absPath) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancel, execute, explain, getAbstractQueryModelRepresentation, includeSystemContent
bindValue, getBindVariableNames, setLimit, setOffset
protected final JcrQueryContext context
protected final String language
protected final String statement
protected JcrAbstractQuery(JcrQueryContext context, String statement, String language, 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 nullstoredAtPath
- the path at which this query was stored, or null if this is not a stored queryprotected final JcrQueryContext context()
public String getLanguage()
getLanguage
in interface Query
public String getStatement()
getStatement
in interface Query
public String getStoredQueryPath() throws ItemNotFoundException
getStoredQueryPath
in interface Query
ItemNotFoundException
public Node storeAsNode(String absPath) throws PathNotFoundException, ConstraintViolationException, RepositoryException
storeAsNode
in interface Query
PathNotFoundException
ConstraintViolationException
RepositoryException
protected void checkForProblems(Problems problems) throws RepositoryException
RepositoryException
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.