Class TableData

java.lang.Object
com.inet.report.database.TableData
All Implemented Interfaces:
Closeable, AutoCloseable

public class TableData extends Object implements Closeable
This class is a container for tabularly data
Since:
13.0
  • Constructor Details

    • TableData

      public TableData(String[] columns, Object[][] rows)
      Create a table data from columns and rows.
      Parameters:
      columns - the column names.
      rows - the value matrix.
      Since:
      13.0
    • TableData

      public TableData(String[] columns, List<Object[]> rows)
      Create a table data from a columns and rows
      Parameters:
      columns - the column names.
      rows - the list of rows.
      Since:
      13.1
    • TableData

      public TableData(List<String> columns, List<Object[]> rows)
      Create a table data from a columns and rows
      Parameters:
      columns - the column names.
      rows - the list of rows.
      Since:
      13.0
    • TableData

      public TableData(@Nonnull @Nonnull ResultSet rs)
      Create a table data from a ResultSet
      Parameters:
      rs - the data
      Since:
      13.0
  • Method Details

    • getData

      @Nonnull public @Nonnull ResultSet getData()
      ONLY FOR INTERNAL USE Get the data of this TableData.
      Returns:
      the data, never null
      Since:
      13.0
    • close

      public void close()
      Closes the underlying result set and the corresponding statement if there is any.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Since:
      15.0