Class GridSqlUnion

  • All Implemented Interfaces:
    GridSqlAst

    public class GridSqlUnion
    extends GridSqlQuery
    Select query with UNION.
    • Constructor Detail

      • GridSqlUnion

        public GridSqlUnion()
    • Method Detail

      • child

        public <E extends GridSqlAst> E child​(int childIdx)
        Get child by index.
        Specified by:
        child in interface GridSqlAst
        Overrides:
        child in class GridSqlQuery
        Parameters:
        childIdx - Index of the requested child.
        Returns:
        Child element.
      • child

        public <E extends GridSqlAst> void child​(int childIdx,
                                                 E child)
        Set child.
        Specified by:
        child in interface GridSqlAst
        Overrides:
        child in class GridSqlQuery
        Parameters:
        childIdx - Index of the requested child.
        child - Child element.
      • size

        public int size()
        Returns:
        Number of child nodes.
      • visibleColumns

        protected int visibleColumns()
        Specified by:
        visibleColumns in class GridSqlQuery
        Returns:
        Number of visible columns.
      • column

        protected GridSqlElement column​(int col)
        Specified by:
        column in class GridSqlQuery
        Parameters:
        col - Column index.
        Returns:
        Expression for column index.
      • skipMergeTable

        public boolean skipMergeTable()
        Specified by:
        skipMergeTable in class GridSqlQuery
        Returns:
        If this is a simple query with no conditions, expressions, sorting, etc...
      • unionType

        public org.h2.command.dml.SelectUnion.UnionType unionType()
        Returns:
        Union type.
      • unionType

        public void unionType​(org.h2.command.dml.SelectUnion.UnionType unionType)
        Parameters:
        unionType - New union type.
      • right

        public void right​(GridSqlQuery right)
        Parameters:
        right - New right.
      • left

        public void left​(GridSqlQuery left)
        Parameters:
        left - New left.