|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.query.script.QueryManagerScriptService
@Component @Named(value="query") @Singleton public class QueryManagerScriptService
Provides Query Manager-specific Scripting APIs.
| Constructor Summary | |
|---|---|
QueryManagerScriptService()
|
|
| Method Summary | |
|---|---|
Query |
createQuery(String statement,
String language)
Create a Query for the given statement and language. |
Query |
hql(String statement)
Shortcut for writing a HQL query. |
Query |
xwql(String statement)
Shortcut for writing a XWQL query. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueryManagerScriptService()
| Method Detail |
|---|
public Query xwql(String statement)
throws QueryException
statement - the XWQL statement for the query
QueryException - if any errors
public Query hql(String statement)
throws QueryException
statement - the HQL statement for the query
QueryException - if any errors
public Query createQuery(String statement,
String language)
throws QueryException
statement - the query statementlanguage - language of the query. Must be a supported language.
QueryException - if language is not supported
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||