Further documentation updates and improvements
[remote/remote-ws.git] / src / motedata / SimpleTable.java
blob4f0438df2973c07124e633fdd156f30865c32843
1 package motedata;
3 import java.io.Serializable;
5 /** Simple data table.
7 * A simple container for storing data from a database query so it can
8 * be exchanged between the server and client.
9 */
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. */
28 public SimpleTable()
30 this(0, 0);
33 /** Get table column headers.
35 * @return The column header of the table.
37 public ColumnHeader[] getColumnHeaders()
39 return columnHeaders;
42 /** Get table data.
44 * @return The object matrix.
46 public Object[][] getData() {
47 return data;