ch.systemsx.cisd.openbis.plugin.query.shared.api.v1.dto
Class QueryTableModel

java.lang.Object
  extended by ch.systemsx.cisd.openbis.plugin.query.shared.api.v1.dto.QueryTableModel
All Implemented Interfaces:
java.io.Serializable

@JsonObject(value="QueryTableModel")
public class QueryTableModel
extends java.lang.Object
implements java.io.Serializable

Model of query data.

See Also:
Serialized Form

Constructor Summary
QueryTableModel(java.util.List<QueryTableColumn> columns)
          Creates an instance for the specified columns.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.