Class QueryObjectModelBuilderRegistry
- java.lang.Object
-
- org.apache.jackrabbit.commons.query.QueryObjectModelBuilderRegistry
-
public class QueryObjectModelBuilderRegistry extends Object
Implements a central access to QueryObjectModelBuilder instances.
-
-
Constructor Summary
Constructors Constructor Description QueryObjectModelBuilderRegistry()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static QueryObjectModelBuilder
getQueryObjectModelBuilder(String language)
Returns theQueryObjectModelBuilder
forlanguage
.static String[]
getSupportedLanguages()
Returns the set of query languages supported by all registeredQueryObjectModelBuilder
implementations.
-
-
-
Method Detail
-
getQueryObjectModelBuilder
public static QueryObjectModelBuilder getQueryObjectModelBuilder(String language) throws InvalidQueryException
Returns theQueryObjectModelBuilder
forlanguage
.- Parameters:
language
- the language of the query statement.- Returns:
- the
QueryObjectModelBuilder
forlanguage
. - Throws:
InvalidQueryException
- if there is no query object model builder forlanguage
.
-
getSupportedLanguages
public static String[] getSupportedLanguages()
Returns the set of query languages supported by all registeredQueryObjectModelBuilder
implementations.- Returns:
- String array containing the names of the supported languages.
-
-