Class TableData

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class TableData
    extends java.lang.Object
    implements java.io.Closeable
    This class is a container for tabularly data
    Since:
    13.0
    • Constructor Summary

      Constructors 
      Constructor Description
      TableData​(java.lang.String[] columns, java.lang.Object[][] rows)
      Create a table data from columns and rows.
      TableData​(java.lang.String[] columns, java.util.List<java.lang.Object[]> rows)
      Create a table data from a columns and rows
      TableData​(java.sql.ResultSet rs)
      Create a table data from a ResultSet
      TableData​(java.util.List<java.lang.String> columns, java.util.List<java.lang.Object[]> rows)
      Create a table data from a columns and rows
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Closes the underlying result set and the corresponding statement if there is any.
      java.sql.ResultSet getData()
      ONLY FOR INTERNAL USE Get the data of this TableData.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TableData

        public TableData​(java.lang.String[] columns,
                         java.lang.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​(java.lang.String[] columns,
                         java.util.List<java.lang.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​(java.util.List<java.lang.String> columns,
                         java.util.List<java.lang.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
                         java.sql.ResultSet rs)
        Create a table data from a ResultSet
        Parameters:
        rs - the data
        Since:
        13.0
    • Method Detail

      • getData

        @Nonnull
        public java.sql.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 java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Since:
        15.0