Class Union

  • All Implemented Interfaces:
    Serializable

    public class Union
    extends Expression
    The union clause.
    Since:
    2.4.0
    Author:
    Francisco Santos (francisco.santos@feedzai.com)
    See Also:
    Serialized Form
    • Constructor Detail

      • Union

        public Union​(Collection<Expression> expressions)
        Creates a new UNION expression.
        Parameters:
        expressions - expressions to union.
      • Union

        public Union​(Expression... expressions)
        Creates a new UNION expression.
        Parameters:
        expressions - expressions to union.
    • Method Detail

      • all

        public Union all()
        Sets this UNION to UNION ALL.
        Returns:
        this UNION ALL.
      • getExpressions

        public List<Expression> getExpressions()
        Gets the expressions to union.
        Returns:
        the expressions to union.
      • isAll

        public boolean isAll()
        Returns true if this is an UNION ALL expression, false otherwise.
        Returns:
        true if this is an UNION ALL expression, false otherwise.
      • translate

        public String translate()
        Description copied from class: Expression
        Translates the expression.
        Specified by:
        translate in class Expression
        Returns:
        A translation of the implementing expression.