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: 8994 $ $Date: 2011-08-02 01:40:59 +0200 (Di, 02 Aug 2011) $
Author:
Udai Gupta, Ralf Joachim

Method Summary
 QueryObject parse(String oql)
          Parse the given OQL query string and return a tree of query objects that represent it.
 

Method Detail

parse

QueryObject parse(String oql)
                  throws 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:
UnsupportedEncodingException - If encoding of the query string is not supported.
ParseException - If query is invalid.


Copyright © 2012. All Rights Reserved.