Package com.inet.report.database
Class TableData
- java.lang.Object
-
- com.inet.report.database.TableData
-
public class TableData extends java.lang.Object
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 rowsTableData(java.sql.ResultSet rs)
Create a table data from a ResultSetTableData(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.
-
-
-
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
-
-