Class UniqueColumnList

    • Constructor Detail

      • UniqueColumnList

        public UniqueColumnList()
        Constructs an empty UniqueList.
      • UniqueColumnList

        public UniqueColumnList​(UniqueColumnList list)
        Copy-constructor. Creates a shallow copy of an UniqueList.
        Parameters:
        list - the uniqueList to copy
    • Method Detail

      • add

        public boolean add​(Column column)
        Adds a Column to the list, if no column with the same SQL Expression is not already contained.
        Specified by:
        add in interface Collection<Column>
        Specified by:
        add in interface List<Column>
        Overrides:
        add in class ArrayList<Column>
        Parameters:
        column - the Column to add, not null.
        Returns:
        true if the Object is added.
        Throws:
        NullPointerException - if column is null.
      • containsSqlExpression

        public boolean containsSqlExpression​(Column column)
        Checks if this list already contains a column with the same SQL expression.
        Parameters:
        column - the column to check, not null.
        Returns:
        true if a column with the same Sql Expression is contained, false otherwise.