Class Parser
- java.lang.Object
-
- org.apache.jackrabbit.commons.query.sql2.Parser
-
-
Constructor Summary
Constructors Constructor Description Parser(QueryObjectModelFactory factory, ValueFactory valueFactory)
Create a new parser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryObjectModel
createQueryObjectModel(String query)
Parse a JCR-SQL2 query and return the query object model
-
-
-
Constructor Detail
-
Parser
public Parser(QueryObjectModelFactory factory, ValueFactory valueFactory)
Create a new parser. A parser can be re-used, but it is not thread safe.- Parameters:
factory
- the query object model factoryvalueFactory
- the value factory
-
-
Method Detail
-
createQueryObjectModel
public QueryObjectModel createQueryObjectModel(String query) throws RepositoryException
Parse a JCR-SQL2 query and return the query object model- Parameters:
query
- the query string- Returns:
- the query object model
- Throws:
RepositoryException
- if parsing failed
-
-