Class SelectStatement


  • public final class SelectStatement
    extends Object
    Represents an sql "SELECT" statement
    • Method Detail

      • everything

        public SelectStatement everything()
        Mark that we should select every value in the table.
        Returns:
        this instance for chaining
      • columns

        public SelectStatement columns​(String... columns)
        Mark which columns we should select.
        Parameters:
        columns - the columns we want to select
        Returns:
        this instance for chaining
      • from

        public SelectStatement from​(String table)
        Mark the table from which we're going to select
        Parameters:
        table - table name
        Returns:
        this instance for chaining
      • where

        public SelectStatement where​(String[] keys,
                                     Object[] values)
        Mark the condition which the select should follow.
        Parameters:
        keys - keys
        values - values
        Returns:
        this instance for chaining.
      • limit

        public SelectStatement limit​(int results)
        Mark the results limit.
        Parameters:
        results - maximum queries we should get
        Returns:
        this instance for chaining