Package org.apache.jackrabbit.core.query
Interface QueryFactory
- 
- All Known Implementing Classes:
- AQTQueryFactory,- CompoundQueryFactory,- QOMQueryFactory
 
 public interface QueryFactoryQueryFactorydefines a simple interface for turning a statement in a given language into a JCR Query instance.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description QuerycreateQuery(String statement, String language)Creates a JCR query instance from the givenstatementin the givenlanguage.List<String>getSupportedLanguages()
 
- 
- 
- 
Method Detail- 
getSupportedLanguagesList<String> getSupportedLanguages() - Returns:
- supported query languages by this factory.
 
 - 
createQueryQuery createQuery(String statement, String language) throws InvalidQueryException, RepositoryException Creates a JCR query instance from the givenstatementin 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.
 
 
- 
 
-