Package org.castor.cpa.query
Interface Parser
-
- All Known Implementing Classes:
AbstractParser
,CastorQLParserAdapter
,EjbQLParserAdapter
public interface Parser
Interface for parsers of OQL query strings.- Since:
- 1.3
- Version:
- $Revision: 7121 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
- Author:
- Udai Gupta, Ralf Joachim
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description QueryObject
parse(java.lang.String oql)
Parse the given OQL query string and return a tree of query objects that represent it.
-
-
-
Method Detail
-
parse
QueryObject parse(java.lang.String oql) throws java.io.UnsupportedEncodingException, ParseException
Parse the given OQL query string and return a tree of query objects that represent it.- Parameters:
oql
- OQL query string passed to the parser generator.- Returns:
- Tree of query objects that represent the query.
- Throws:
java.io.UnsupportedEncodingException
- If encoding of the query string is not supported.ParseException
- If query is invalid.
-
-