org.eobjects.metamodel.query.parser
Class QueryParser

java.lang.Object
  extended by org.eobjects.metamodel.query.parser.QueryParser

public class QueryParser
extends Object

A parser class of for full SQL-like queries.


Constructor Summary
QueryParser(DataContext dataContext, String queryString)
           
 
Method Summary
protected  int[] indexesOf(String string, int[] previousIndices)
          Finds the start and end indexes of a string in the query.
 Query parse()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryParser

public QueryParser(DataContext dataContext,
                   String queryString)
Method Detail

parse

public Query parse()
            throws QueryParserException
Throws:
QueryParserException

indexesOf

protected int[] indexesOf(String string,
                          int[] previousIndices)
Finds the start and end indexes of a string in the query. The string parameter of this method is expected to be in upper case, while the query itself is tolerant of case differences.

Parameters:
string -
previousIndices -
Returns:


Copyright © 2007-2013. All Rights Reserved.