Class Table

    • Method Detail

      • getType

        public String getType()
        Description copied from interface: DatabaseObject
        Get the type of the database object.
        Returns:
        type of the database object
      • getColumns

        public List<Column> getColumns()
        Get the columns of the table.
        Returns:
        table columns
      • getColumnCount

        public int getColumnCount()
        Get the number of columns the table has.
        Returns:
        column count
      • getRows

        public List<List<Object>> getRows()
        Get the table's contents (aka. "rows")
        Returns:
        rows in the table
      • insert

        public Table insert​(Object... values)
        Insert a row of values to the table.
        Parameters:
        values - cell values
        Returns:
        this for fluent programming
      • builder

        public static Table.Builder builder​(DatabaseObjectWriter writer,
                                            Schema schema,
                                            String tableName)
        Create a builder for a Table.
        Parameters:
        writer - database object writer
        schema - parent schema
        tableName - name of the database table
        Returns:
        new Table instance