|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.core.search.QueryManagerImpl
public class QueryManagerImpl
Wrapping a JCR QueryManager
.
Field Summary | |
---|---|
protected HierarchyManager |
hm
|
protected javax.jcr.query.QueryManager |
queryManager
|
Constructor Summary | |
---|---|
QueryManagerImpl(javax.jcr.query.QueryManager queryManager,
HierarchyManager hm)
|
Method Summary | |
---|---|
Query |
createQuery(String s,
String s1)
Description inherited from javax.jcr.query.QueryManager#createQuery(String, String) Creates a new query by specifying the query statement itself and the language in
which the query is stated. |
boolean |
equals(Object obj)
|
Query |
getQuery(javax.jcr.Node node)
Description inherited from javax.jcr.query.QueryManager#getQuery(javax.jcr.Node) Retrieves an existing persistent query. |
String[] |
getSupportedQueryLanguages()
Description inherited from javax.jcr.query.QueryManager#getSupportedQueryLanguages() Returns an array of strings representing all query languages supported by this repository. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.jcr.query.QueryManager queryManager
protected HierarchyManager hm
Constructor Detail |
---|
public QueryManagerImpl(javax.jcr.query.QueryManager queryManager, HierarchyManager hm)
Method Detail |
---|
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public Query createQuery(String s, String s1) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
QueryManager
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
must be a string from
among those returned by QueryManager.getSupportedQueryLanguages(); if it is not, then an
InvalidQueryException
is thrown.
createQuery
in interface QueryManager
Query
object.
javax.jcr.query.InvalidQueryException
- if statement is invalid or language is unsupported.
javax.jcr.RepositoryException
- if another error occurspublic Query getQuery(javax.jcr.Node node) throws javax.jcr.query.InvalidQueryException, javax.jcr.RepositoryException
QueryManager
node
is not a valid persisted query (that is, a node of
type nt:query
), an InvalidQueryException
is thrown. Persistent queries are
created by first using QueryManager.createQuery
to create a Query
object and then
calling Query.save
to persist the query to a location in the workspace.
getQuery
in interface QueryManager
node
- a persisted query (that is, a node of type nt:query
).
Query
object.
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 occurspublic String[] getSupportedQueryLanguages() throws javax.jcr.RepositoryException
QueryManager
Query.XPATH
. If SQL is supported it must
additionally include the string represented by the constant Query.SQL
. An implementation may also
support other languages as well. See Query
.
getSupportedQueryLanguages
in interface QueryManager
javax.jcr.RepositoryException
- if an error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |