Class Selection

java.lang.Object
com.appiancorp.common.query.Selection
All Implemented Interfaces:
Projection<Column>, Cloneable

@GwtCompatible public final class Selection extends Object implements Projection<Column>
Holds the List of Columns to project the Query by.
  • Field Details

  • Constructor Details

    • Selection

      protected Selection(List<Column> columns)
      Constructs a new query Selection
      Parameters:
      columns - the list of columns
  • Method Details

    • getColumns

      public List<Column> getColumns()
      Description copied from interface: Projection
      Returns the list of projected columns
      Specified by:
      getColumns in interface Projection<Column>
      Returns:
      the list of projected columns
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • clone

      public Projection<Column> clone()
      Description copied from interface: Projection
      Returns a new Projection containing the same data as this Projection. This is not a deep clone, it just creates new lists to allow data manipulation.
      Specified by:
      clone in interface Projection<Column>
      Overrides:
      clone in class Object
      Returns:
      new Projection containing the same data as this Projection copied by value.