Class QueryNode

  • Direct Known Subclasses:
    ModifyNode, SelectNode

    public abstract class QueryNode
    extends MajorNode
    INTERNAL: This node contains the information about what kind of query is represented it's tree (e.g. Select, Update etc.) Subclasses of this node will contain query specific behavior.
    • Constructor Detail

      • QueryNode

        public QueryNode()
    • Method Detail

      • createDatabaseQuery

        public abstract DatabaseQuery createDatabaseQuery​(ParseTreeContext context)
        INTERNAL Returns a DatabaseQuery instance according to the kind of the query the owning ParseTree represents: SELECT, UPDATE or DELETE.
      • applyToQuery

        public abstract void applyToQuery​(DatabaseQuery theQuery,
                                          GenerationContext context)
        INTERNAL Apply this node to the passed query
      • getReferenceClass

        public Class getReferenceClass​(GenerationContext genContext)
        Compute the Reference class for this query
        Parameters:
        genContext -
        Returns:
        the class this query is querying for
      • isSelectNode

        public boolean isSelectNode()
      • isUpdateNode

        public boolean isUpdateNode()
      • isDeleteNode

        public boolean isDeleteNode()
      • setParseTree

        public void setParseTree​(ParseTree parseTree)
        Set the parseTree
      • getParseTree

        public ParseTree getParseTree()