org.apache.jackrabbit.core.query.lucene
Class QueryObjectModelImpl
java.lang.Object
org.apache.jackrabbit.core.query.lucene.AbstractQueryImpl
org.apache.jackrabbit.core.query.lucene.QueryObjectModelImpl
- All Implemented Interfaces:
- ExecutableQuery
public class QueryObjectModelImpl
- extends AbstractQueryImpl
QueryObjectModelImpl...
|
Method Summary |
javax.jcr.query.QueryResult |
execute(long offset,
long limit)
Executes this query and returns a QueryResult. |
Name[] |
getSelectorNames()
|
boolean |
needsSystemTree()
Returns true if this query node needs items under
/jcr:system to be queried. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryObjectModelImpl
public QueryObjectModelImpl(SessionImpl session,
ItemManager itemMgr,
SearchIndex index,
PropertyTypeRegistry propReg,
QueryObjectModelTree qomTree)
- Creates a new 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.index - the search index.propReg - the property type registry.qomTree - the query object model tree.
needsSystemTree
public boolean needsSystemTree()
- Returns
true if this query node needs items under
/jcr:system to be queried.
- Specified by:
needsSystemTree in class AbstractQueryImpl
- Returns:
true if this query node needs content under
/jcr:system to be queried; false otherwise.
getSelectorNames
public Name[] getSelectorNames()
-
- Specified by:
getSelectorNames in class AbstractQueryImpl
- Returns:
- the selector names for this query.
execute
public javax.jcr.query.QueryResult execute(long offset,
long limit)
throws javax.jcr.RepositoryException
- Executes this query and returns a
QueryResult.
- Parameters:
offset - the offset in the total result setlimit - the maximum result size
- Returns:
- a
QueryResult
- Throws:
javax.jcr.RepositoryException - if an error occurs
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.