3 import java
.io
.Serializable
;
7 * A simple container for storing data from a database query so it can
8 * be exchanged between the server and client.
10 public class SimpleTable
implements Serializable
{
12 private static final long serialVersionUID
= -6733140214602762727L;
13 private ColumnHeader
[] columnHeaders
;
14 private Object
[][] data
;
16 /** Create a table with initial given size.
18 * @param rowCount The number of rows in the table.
19 * @param colCount The number of columns in the table.
21 public SimpleTable(int rowCount
, int colCount
)
23 columnHeaders
= new ColumnHeader
[colCount
];
24 data
= new Object
[rowCount
][colCount
];
27 /** Dummy constructor to silence compiler warnings. */
33 /** Get table column headers.
35 * @return The column header of the table.
37 public ColumnHeader
[] getColumnHeaders()
44 * @return The object matrix.
46 public Object
[][] getData() {