Class Select

    • Constructor Detail

      • Select

        public Select​(java.lang.String... columns)
        Create a new SELECT statement
        Parameters:
        columns - The column names to select
    • Method Detail

      • distinct

        public Select distinct()
        Enable DISTINCT selection. Disables ALL selection.
        Returns:
        This SELECT statement
      • all

        public Select all()
        Enable ALL selection. Disables DISTINCT selection.
        Returns:
        This SELECT statement
      • column

        public Select column​(java.lang.String column)
        Select a column by name
        Parameters:
        column - The column name of the column to select
        Returns:
        This SELECT statement
      • column

        public Select column​(java.lang.String column,
                             java.lang.String alias)
        Select a column by name
        Parameters:
        column - The column name of the column to select
        alias - The column alias, will be appended to the column name
        Returns:
        This SELECT statement
      • columns

        public Select columns​(java.lang.String... columns)
        Select multiple columns by name
        Parameters:
        columns - The column names of the columns to select
        Returns:
        This SELECT statement
      • 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