|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.query.lucene.AbstractQueryImpl
org.apache.jackrabbit.core.query.lucene.QueryImpl
public class QueryImpl
Implements the ExecutableQuery
interface.
| Field Summary | |
|---|---|
static Name |
DEFAULT_SELECTOR_NAME
The default selector name 's'. |
protected QueryRootNode |
root
The root node of the query tree |
| Fields inherited from class org.apache.jackrabbit.core.query.lucene.AbstractQueryImpl |
|---|
index, itemMgr, propReg, session |
| Constructor Summary | |
|---|---|
QueryImpl(SessionImpl session,
ItemManager itemMgr,
SearchIndex index,
PropertyTypeRegistry propReg,
java.lang.String statement,
java.lang.String language,
QueryNodeFactory factory)
Creates a new query instance from a query string. |
|
| Method Summary | |
|---|---|
javax.jcr.query.QueryResult |
execute(long offset,
long limit)
Executes this query and returns a . |
Name[] |
getSelectorNames()
|
protected Name[] |
getSelectProperties()
Returns the select properties for this query. |
boolean |
needsSystemTree()
Returns true if this query node needs items under
/jcr:system to be queried. |
| Methods inherited from class org.apache.jackrabbit.core.query.lucene.AbstractQueryImpl |
|---|
addVariableName, bindValue, getBindVariableValues, getRespectDocumentOrder, setRespectDocumentOrder |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Name DEFAULT_SELECTOR_NAME
protected final QueryRootNode root
| Constructor Detail |
|---|
public QueryImpl(SessionImpl session,
ItemManager itemMgr,
SearchIndex index,
PropertyTypeRegistry propReg,
java.lang.String statement,
java.lang.String language,
QueryNodeFactory factory)
throws javax.jcr.query.InvalidQueryException
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.statement - the query statement.language - the syntax of the query statement.factory - the query node factory.
javax.jcr.query.InvalidQueryException - if the query statement is invalid according
to the specified language.| Method Detail |
|---|
public javax.jcr.query.QueryResult execute(long offset,
long limit)
throws javax.jcr.RepositoryException
QueryResult.
offset - the offset in the total result setlimit - the maximum result size
QueryResult
javax.jcr.RepositoryException - if an error occurs
protected Name[] getSelectProperties()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryException - if an error occurs.public boolean needsSystemTree()
true if this query node needs items under
/jcr:system to be queried.
needsSystemTree in class AbstractQueryImpltrue if this query node needs content under
/jcr:system to be queried; false otherwise.public Name[] getSelectorNames()
getSelectorNames in class AbstractQueryImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||