Class JPQLParseTree


  • public class JPQLParseTree
    extends ParseTree
    INTERNAL

    Purpose: This represents an EJBQL parse tre

    Responsibilities:

    • Maintain the context for the expression generation
    • Build an initial expression
    • Return a reference class for the expression
    • Maintain the root node for the query
    Since:
    TopLink 4.0
    Author:
    Jon Driscoll and Joel Lucuik
    • Constructor Detail

      • JPQLParseTree

        public JPQLParseTree()
        EJBQLParseTree constructor comment.
    • Method Detail

      • populateSubquery

        public GenerationContext populateSubquery​(ObjectLevelReadQuery readQuery,
                                                  GenerationContext outer)
        Add all of the relevant query settings from an EJBQLParseTree to the given database query.
        Parameters:
        readQuery - The query to populate
        outer - the GenerationContext of the outer EJBQL query.
        Returns:
        the GenerationContext for the subquery
      • populateQuery

        public void populateQuery​(DatabaseQuery query,
                                  AbstractSession session)
        Add all of the relevant query settings from an EJBQLParseTree to the given database query.
        Parameters:
        query - The query to populate
        session - The session to use to information such as descriptors.