|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jackrabbit.core.query.QueryImpl
Implements the Query interface.
| Field Summary |
| Fields inherited from interface javax.jcr.query.Query |
SQL, XPATH |
| Constructor Summary | |
QueryImpl(SessionImpl session,
ItemManager itemMgr,
QueryHandler handler,
Node node)
Create a new query instance from a nt:query node. |
|
QueryImpl(SessionImpl session,
ItemManager itemMgr,
QueryHandler handler,
String statement,
String language)
Creates a new query instance from a query string. |
|
| Method Summary | |
QueryResult |
execute()
This method simply forwards the execute call to the
ExecutableQuery object returned by
QueryHandler.createExecutableQuery(org.apache.jackrabbit.core.SessionImpl, org.apache.jackrabbit.core.ItemManager, java.lang.String, java.lang.String). |
String |
getLanguage()
|
String |
getStatement()
|
String |
getStoredQueryPath()
|
Node |
storeAsNode(String absPath)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public QueryImpl(SessionImpl session,
ItemManager itemMgr,
QueryHandler handler,
String statement,
String language)
throws InvalidQueryException
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.
InvalidQueryException - if the query statement is invalid according
to the specified language.
public QueryImpl(SessionImpl session,
ItemManager itemMgr,
QueryHandler handler,
Node node)
throws InvalidQueryException,
RepositoryException
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.
InvalidQueryException - If node is not a valid persisted query
(that is, a node of type nt:query).
RepositoryException - if another error occurs| Method Detail |
public QueryResult execute()
throws RepositoryException
execute call to the
ExecutableQuery object returned by
QueryHandler.createExecutableQuery(org.apache.jackrabbit.core.SessionImpl, org.apache.jackrabbit.core.ItemManager, java.lang.String, java.lang.String).
execute in interface QueryRepositoryExceptionpublic String getStatement()
getStatement in interface Querypublic String getLanguage()
getLanguage in interface Query
public String getStoredQueryPath()
throws ItemNotFoundException,
RepositoryException
getStoredQueryPath in interface QueryItemNotFoundException
RepositoryException
public Node storeAsNode(String absPath)
throws ItemExistsException,
PathNotFoundException,
VersionException,
ConstraintViolationException,
LockException,
UnsupportedRepositoryOperationException,
RepositoryException
storeAsNode in interface QueryItemExistsException
PathNotFoundException
VersionException
ConstraintViolationException
LockException
UnsupportedRepositoryOperationException
RepositoryException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||