Class QueryTableModel
- java.lang.Object
-
- ch.systemsx.cisd.openbis.plugin.query.shared.api.v1.dto.QueryTableModel
-
- All Implemented Interfaces:
java.io.Serializable
@JsonObject("QueryTableModel") public class QueryTableModel extends java.lang.Object implements java.io.Serializable
Model of query data.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description QueryTableModel(java.util.List<QueryTableColumn> columns)
Creates an instance for the specified columns.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRow(java.io.Serializable[] values)
Adds a row of values.java.util.List<QueryTableColumn>
getColumns()
Returns columns as specified in the constructor.java.util.List<java.io.Serializable[]>
getRows()
Gets all rows.
-
-
-
Constructor Detail
-
QueryTableModel
public QueryTableModel(java.util.List<QueryTableColumn> columns)
Creates an instance for the specified columns.
-
-
Method Detail
-
getColumns
public java.util.List<QueryTableColumn> getColumns()
Returns columns as specified in the constructor.
-
addRow
public void addRow(java.io.Serializable[] values)
Adds a row of values.- Throws:
java.lang.IllegalArgumentException
- if the number of values is not the same as the number of columns.
-
getRows
public java.util.List<java.io.Serializable[]> getRows()
Gets all rows.
-
-