| 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) |
javax.jcr.Node |
storeAsNode(String absPath) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancel, execute, explain, getAbstractQueryModelRepresentation, includeSystemContentprotected 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 javax.jcr.query.Querypublic String getStatement()
getStatement in interface javax.jcr.query.Querypublic String getStoredQueryPath() throws javax.jcr.ItemNotFoundException
getStoredQueryPath in interface javax.jcr.query.Queryjavax.jcr.ItemNotFoundExceptionpublic javax.jcr.Node storeAsNode(String absPath) throws javax.jcr.PathNotFoundException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
storeAsNode in interface javax.jcr.query.Queryjavax.jcr.PathNotFoundExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.RepositoryExceptionprotected void checkForProblems(Problems problems) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionCopyright © 2008-2015 JBoss, a division of Red Hat. All Rights Reserved.