Interface QueryObjectModelBuilder
- 
- All Known Implementing Classes:
- SQL2QOMBuilder
 
 public interface QueryObjectModelBuilderQueryObjectModelBuilderdefines an interface for building a query object model from a string based query statement and vice versa.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanHandle(String language)Returnstrueif this QOM builder can handle a statement inlanguage.QueryObjectModelcreateQueryObjectModel(String statement, QueryObjectModelFactory qf, ValueFactory vf)Creates a new query object model from the givenstatementusing the passed QOM and value factory.String[]getSupportedLanguages()Returns the set of query languages supported by this builder.StringtoString(QueryObjectModel qom)Creates a String representation of the query object model in the syntax thisQueryObjectModelBuildercan handle.
 
- 
- 
- 
Method Detail- 
createQueryObjectModelQueryObjectModel createQueryObjectModel(String statement, QueryObjectModelFactory qf, ValueFactory vf) throws InvalidQueryException, RepositoryException Creates a new query object model from the givenstatementusing the passed QOM and value factory.- Parameters:
- statement- the query statement.
- qf- the query object model factory.
- vf- the value factory.
- Returns:
- the query object model for the given statement.
- Throws:
- InvalidQueryException- if the statement is invalid.
- RepositoryException- if another error occurs.
 
 - 
canHandleboolean canHandle(String language) Returnstrueif this QOM builder can handle a statement inlanguage.- Parameters:
- language- the language of a query statement to build a QOM.
- Returns:
- trueif this builder can handle- language;- falseotherwise.
 
 - 
getSupportedLanguagesString[] getSupportedLanguages() Returns the set of query languages supported by this builder.- Returns:
- String array containing the names of the supported languages.
 
 - 
toStringString toString(QueryObjectModel qom) throws InvalidQueryException Creates a String representation of the query object model in the syntax thisQueryObjectModelBuildercan handle.- Parameters:
- qom- the query object model.
- Returns:
- a String representation of the QOM.
- Throws:
- InvalidQueryException- if the query object model cannot be converted into a String representation due to restrictions in this syntax.
 
 
- 
 
-