@Role
public interface QueryManager
Modifier and Type | Method and Description |
---|---|
Query |
createQuery(String statement,
String language)
Create query for given statement and language.
|
Set<String> |
getLanguages() |
Query |
getNamedQuery(String queryName) |
boolean |
hasLanguage(String language) |
Query createQuery(String statement, String language) throws QueryException
statement
- query statement.language
- language of the query. Must be one of getLanguages()
. Use Query
.LANGUAGE for
indication.QueryException
- if language is not supportedQuery getNamedQuery(String queryName) throws QueryException
queryName
- name of named query.QueryException
- if there is no query with that nameboolean hasLanguage(String language)
language
- language to check.Copyright © 2004–2022 XWiki. All rights reserved.