Package org.castor.cpa.query.ejbql
Class EjbQLParserAdapter
java.lang.Object
org.castor.cpa.query.AbstractParser
org.castor.cpa.query.ejbql.EjbQLParserAdapter
- All Implemented Interfaces:
Parser
Class that implements abstract parser generator.
- Since:
- 1.3
- Version:
- $Revision: 7121 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
- Author:
- Udai Gupta, Ralf Joachim
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEjbQLParserTokenManager
createTkmgr
(String oql) Creates the TokenManager instance.SimpleNode
getSimpleNode
(String oql) Gets the root SimpleNode instance of JJTREE.Parse the given OQL query string and return a tree of query objects that represent it.
-
Constructor Details
-
EjbQLParserAdapter
public EjbQLParserAdapter()
-
-
Method Details
-
parse
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
ParseException
-
getSimpleNode
Gets the root SimpleNode instance of JJTREE.- Parameters:
oql
- the query string- Returns:
- the root SimpleNode of JJTREE
- Throws:
UnsupportedEncodingException
- the unsupported encoding exceptionParseException
- the QL parse exception
-
createTkmgr
Creates the TokenManager instance.- Parameters:
oql
- the query string- Returns:
- the castor ql parser token manager
- Throws:
UnsupportedEncodingException
- the unsupported encoding exception
-