| 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, waitcancel, explain, getAbstractQueryModelRepresentationprotected 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 Querypublic String getStatement()
getStatement in interface Querypublic String getStoredQueryPath() throws ItemNotFoundException
getStoredQueryPath in interface QueryItemNotFoundExceptionpublic Node storeAsNode(String absPath) throws PathNotFoundException, ConstraintViolationException, RepositoryException
storeAsNode in interface QueryPathNotFoundExceptionConstraintViolationExceptionRepositoryExceptionprotected void checkForProblems(Problems problems) throws RepositoryException
RepositoryExceptionCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.