org.apache.jackrabbit.core.query
Class AbstractQueryImpl
java.lang.Object
org.apache.jackrabbit.core.query.AbstractQueryImpl
- All Implemented Interfaces:
- javax.jcr.query.Query
- Direct Known Subclasses:
- QueryImpl
public abstract class AbstractQueryImpl
- extends java.lang.Object
- implements javax.jcr.query.Query
Defines common initialization methods for all query implementations.
| Fields inherited from interface javax.jcr.query.Query |
SQL, XPATH |
|
Method Summary |
abstract void |
init(SessionImpl session,
ItemManager itemMgr,
QueryHandler handler,
javax.jcr.Node node)
Initializes a query instance from a nt:query node. |
abstract void |
init(SessionImpl session,
ItemManager itemMgr,
QueryHandler handler,
QueryObjectModelTree qomTree,
java.lang.String language)
Initializes a query instance from a query object model. |
abstract void |
init(SessionImpl session,
ItemManager itemMgr,
QueryHandler handler,
java.lang.String statement,
java.lang.String language)
Initializes a query instance from a query string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.jcr.query.Query |
execute, getLanguage, getStatement, getStoredQueryPath, storeAsNode |
AbstractQueryImpl
public AbstractQueryImpl()
init
public abstract void init(SessionImpl session,
ItemManager itemMgr,
QueryHandler handler,
java.lang.String statement,
java.lang.String language)
throws javax.jcr.query.InvalidQueryException
- Initializes a query instance from a query string.
- Parameters:
session - the session of the user executing this query.itemMgr - the item manager of the session executing this query.handler - the query handler of the search index.statement - the query statement.language - the syntax of the query statement.
- Throws:
javax.jcr.query.InvalidQueryException - if the query statement is invalid according
to the specified language.
init
public abstract void init(SessionImpl session,
ItemManager itemMgr,
QueryHandler handler,
javax.jcr.Node node)
throws javax.jcr.query.InvalidQueryException,
javax.jcr.RepositoryException
- Initializes a query instance from a nt:query node.
- Parameters:
session - the session of the user executing this query.itemMgr - the item manager of the session executing this query.handler - the query handler of the search index.node - a node of type nt:query.
- Throws:
javax.jcr.query.InvalidQueryException - If node is not a valid persisted query
(that is, a node of type nt:query).
javax.jcr.RepositoryException - if another error occurs
init
public abstract void init(SessionImpl session,
ItemManager itemMgr,
QueryHandler handler,
QueryObjectModelTree qomTree,
java.lang.String language)
throws javax.jcr.RepositoryException
- Initializes a query instance from a query object model.
- Parameters:
session - the session of the user executing this query.itemMgr - the item manager of the session executing this query.handler - the query handler of the search index.qomTree - the query object model tree.language - the original query syntax from where the JQOM was
created.
- Throws:
javax.jcr.RepositoryException - if another error occurs
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.