Class JDOQLSingleStringParser

  extended by org.datanucleus.query.JDOQLSingleStringParser

public class JDOQLSingleStringParser
extends java.lang.Object

Parser for handling JDOQL Single-String queries. Takes a JDOQLQuery and the query string and parses it into its constituent parts, updating the JDOQLQuery accordingly with the result that after calling the parse() method the JDOQLQuery is populated.

 select [unique] [  ] [into ]
                              [from  [exclude subclasses] ]
                              [where ]
                              [variables  ]
                              [parameters ]
                              [group by  ]
                              [order by ]
                              [range  ,]                                       
Note that {filter} can contain subqueries, hence containing keywords
 SELECT c FROM Customer c WHERE timeAvailable < (SELECT avg(hours) FROM Employee e)
So the "filter" for the outer query is "timeAvailable < (SELECT avg(hours) FROM Employee e)"

Field Summary
protected static Localiser LOCALISER
          Localiser for messages.
Constructor Summary
JDOQLSingleStringParser(Query query, java.lang.String queryString)
          Constructor for the Single-String parser.
Method Summary
 void parse()
          Method to parse the Single-String query
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail


protected static final Localiser LOCALISER
Localiser for messages.

Constructor Detail


public JDOQLSingleStringParser(Query query,
                               java.lang.String queryString)
Constructor for the Single-String parser.

query - The query
queryString - The Single-String query
Method Detail


public void parse()
Method to parse the Single-String query

Copyright © 2010. All Rights Reserved.