Class Union

    • Constructor Detail

    • Method Detail

      • all

        public Union all()
        Enable UNION ALL to join all results without removing duplicate results.
        Returns:
        This instance
      • distinct

        public Union distinct()
        Enable UNION to join only distinct results. Removes duplicate results.
        Returns:
        This instance
      • all

        public Union all​(boolean all)
        Pass true to enable UNION ALL or false to enable UNION.
        Parameters:
        all - True for ALL or false for DISTINCT
        Returns:
        This instance
      • string

        public java.lang.String string​(QueryOptions options)
        Description copied from interface: QueryPart
        Transforms this statement into an SQL string
        Specified by:
        string in interface QueryPart
        Parameters:
        options - The QueryOptions to apply for transformation
        Returns:
        The created SQL string