Package org.apache.jackrabbit.core.query
Interface QueryFactory
-
- All Known Implementing Classes:
AQTQueryFactory
,CompoundQueryFactory
,QOMQueryFactory
public interface QueryFactory
QueryFactory
defines a simple interface for turning a statement in a given language into a JCR Query instance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Query
createQuery(String statement, String language)
Creates a JCR query instance from the givenstatement
in the givenlanguage
.List<String>
getSupportedLanguages()
-
-
-
Method Detail
-
getSupportedLanguages
List<String> getSupportedLanguages()
- Returns:
- supported query languages by this factory.
-
createQuery
Query createQuery(String statement, String language) throws InvalidQueryException, RepositoryException
Creates a JCR query instance from the givenstatement
in the givenlanguage
.- Parameters:
statement
- the query statement.language
- the language of the query statement.- Returns:
- the JCR query instance representing the query.
- Throws:
InvalidQueryException
- if the statement is malformed or the language is not supported.RepositoryException
- if another error occurs.
-
-