|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.query.QueryManagerImpl
public class QueryManagerImpl
This class implements the QueryManager interface.
| Constructor Summary | |
|---|---|
QueryManagerImpl(SessionImpl session,
ItemManager itemMgr,
SearchManager searchMgr)
Creates a new QueryManagerImpl for the passed
session |
|
| Method Summary | |
|---|---|
PreparedQuery |
createPreparedQuery(String statement,
String language)
Creates a new prepared query by specifying the query statement itself and the language in which the
query is stated. |
Query |
createQuery(String statement,
String language)
|
QueryObjectModelFactory |
getQOMFactory()
Returns a QueryObjectModelFactory with which a JCR-JQOM
query can be built programmatically. |
Query |
getQuery(Node node)
|
String[] |
getSupportedQueryLanguages()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueryManagerImpl(SessionImpl session,
ItemManager itemMgr,
SearchManager searchMgr)
QueryManagerImpl for the passed
session
session - itemMgr - searchMgr - | Method Detail |
|---|
public Query createQuery(String statement,
String language)
throws InvalidQueryException,
RepositoryException
createQuery in interface QueryManagerInvalidQueryException
RepositoryException
public Query getQuery(Node node)
throws InvalidQueryException,
RepositoryException
getQuery in interface QueryManagerInvalidQueryException
RepositoryException
public String[] getSupportedQueryLanguages()
throws RepositoryException
getSupportedQueryLanguages in interface QueryManagerRepositoryException
public PreparedQuery createPreparedQuery(String statement,
String language)
throws InvalidQueryException,
RepositoryException
statement itself and the language in which the
query is stated. If the query statement is syntactically invalid, given
the language specified, an InvalidQueryException is thrown.
The language parameter must be a string from among those returned by
QueryManager.getSupportedQueryLanguages(); if it is not,
then an InvalidQueryException is thrown.
statement - a Stringlanguage - a String
PreparedQuery object
InvalidQueryException - if the query statement is syntactically
invalid or the specified language is not
supported
RepositoryException - if another error occurspublic QueryObjectModelFactory getQOMFactory()
QueryObjectModelFactory with which a JCR-JQOM
query can be built programmatically.
QueryObjectModelFactory object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||