public class QueryObjectModelImpl extends QueryImpl implements javax.jcr.query.qom.QueryObjectModel
QueryObjectModelImpl implements the query object model.| Modifier and Type | Field and Description |
|---|---|
protected QueryObjectModelTree |
qomTree
The query object model tree.
|
| Constructor and Description |
|---|
QueryObjectModelImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
bindValue(String varName,
javax.jcr.Value value)
Throws an
IllegalArgumentException as XPath and SQL1 queries
have no bind variables. |
javax.jcr.query.QueryResult |
execute()
This method simply forwards the
execute call to the
ExecutableQuery object returned by
QueryHandler.createExecutableQuery(org.apache.jackrabbit.core.session.SessionContext, java.lang.String, java.lang.String). |
String[] |
getBindVariableNames() |
javax.jcr.query.qom.Column[] |
getColumns()
Gets the columns for this query.
|
javax.jcr.query.qom.Constraint |
getConstraint()
Gets the constraint for this query.
|
javax.jcr.query.qom.Ordering[] |
getOrderings()
Gets the orderings for this query.
|
javax.jcr.query.qom.Source |
getSource()
Gets the node-tuple source for this query.
|
void |
init(SessionContext sessionContext,
QueryHandler handler,
QueryObjectModelTree qomTree,
String language,
javax.jcr.Node node)
Initializes a query instance from a query object model.
|
void |
init(SessionContext sessionContext,
QueryHandler handler,
String statement,
String language,
javax.jcr.Node node)
Initialises a query instance from a query string.
|
checkInitialized, checkNotInitialized, getLanguage, getStatement, getStoredQueryPath, setInitialized, setLimit, setOffset, storeAsNodeprotected QueryObjectModelTree qomTree
public void init(SessionContext sessionContext, QueryHandler handler, String statement, String language, javax.jcr.Node node) throws javax.jcr.query.InvalidQueryException
init in class QueryImplsessionContext - component context of the current sessionhandler - the query handler of the search index.statement - the query statement.language - the syntax of the query statement.node - a nt:query node where the query was read from or
null if it is not a stored query.UnsupportedOperationException - always.javax.jcr.query.InvalidQueryException - if the query statement is invalid according
to the specified language.public void init(SessionContext sessionContext, QueryHandler handler, QueryObjectModelTree qomTree, String language, javax.jcr.Node node) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
sessionContext - component context of the current sessionhandler - the query handler of the search index.qomTree - the query object model tree.language - the original query syntax from where the JQOM was
created.node - a nt:query node where the query was read from or
null if it is not a stored query.javax.jcr.query.InvalidQueryException - if the qom tree cannot be serialized
according to the given language.javax.jcr.RepositoryException - if another error occurspublic javax.jcr.query.QueryResult execute()
throws javax.jcr.RepositoryException
QueryImplexecute call to the
ExecutableQuery object returned by
QueryHandler.createExecutableQuery(org.apache.jackrabbit.core.session.SessionContext, java.lang.String, java.lang.String).
public String[] getBindVariableNames()
QueryImplgetBindVariableNames in interface javax.jcr.query.QuerygetBindVariableNames in class QueryImplpublic void bindValue(String varName, javax.jcr.Value value) throws IllegalArgumentException
QueryImplIllegalArgumentException as XPath and SQL1 queries
have no bind variables.bindValue in interface javax.jcr.query.QuerybindValue in class QueryImplIllegalArgumentException - always thrownpublic javax.jcr.query.qom.Source getSource()
getSource in interface javax.jcr.query.qom.QueryObjectModelpublic javax.jcr.query.qom.Constraint getConstraint()
getConstraint in interface javax.jcr.query.qom.QueryObjectModelpublic javax.jcr.query.qom.Ordering[] getOrderings()
getOrderings in interface javax.jcr.query.qom.QueryObjectModelpublic javax.jcr.query.qom.Column[] getColumns()
getColumns in interface javax.jcr.query.qom.QueryObjectModelCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.