Class SubqueryFromClause

    • Constructor Detail

      • SubqueryFromClause

        public SubqueryFromClause​(String name)
        Construct default object
      • SubqueryFromClause

        public SubqueryFromClause​(String name,
                                  Command command)
        Construct object with specified command and name
        Parameters:
        command - Command representing subquery, or stored procedure
        name - Alias of the subquery
    • Method Detail

      • isLateral

        public boolean isLateral()
      • setLateral

        public void setLateral​(boolean table)
      • setName

        public void setName​(String name)
        Reset the alias for this subquery from clause and it's pseudo-GroupSymbol. WARNING: this will modify the hashCode and equals semantics and will cause this object to be lost if currently in a HashMap or HashSet.
        Parameters:
        name - New name
        Since:
        4.3
      • setCommand

        public void setCommand​(Command command)
        Set the command held by the clause
        Specified by:
        setCommand in interface SubqueryContainer
        Parameters:
        command - Command to hold
      • getName

        public String getName()
        Get name of this clause.
        Returns:
        Name of clause
      • getOutputName

        public String getOutputName()
      • getGroupSymbol

        public GroupSymbol getGroupSymbol()
        Get GroupSymbol representing the named subquery
        Returns:
        GroupSymbol representing the subquery
      • collectGroups

        public void collectGroups​(Collection groups)
        Collect all GroupSymbols for this from clause.
        Specified by:
        collectGroups in class FromClause
        Parameters:
        groups - Groups to add to
      • equals

        public boolean equals​(Object obj)
        Check whether objects are equal
        Overrides:
        equals in class FromClause
        Parameters:
        obj - Other object
        Returns:
        True if equal
      • hashCode

        public int hashCode()
        Get hash code of object
        Overrides:
        hashCode in class Object
        Returns:
        Hash code