org.apache.jackrabbit.spi.commons.query.sql2
Class Parser
java.lang.Object
org.apache.jackrabbit.spi.commons.query.sql2.Parser
public class Parser
- extends Object
The SQL2 parser can convert a JCR-SQL2 query to a QueryObjectModel.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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
Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.