public class JSONResultSetResponse extends JSONResponse
There are two ways to use this class:
JSONResultSetResponse jsonResultSetResponse = (JSONResultSetResponse) jsonResponse;The result set can then be manipulated in a variety of ways before being returned. See the sample plug-in's SamplePluginResponseFilter for an example of using it in this way.
| Constructor and Description |
|---|
JSONResultSetResponse()
Constructs the result set response JSON.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addColumn(JSONResultSetColumn column)
Adds a new column to the result set.
|
void |
addMagazineColumn(JSONResultSetColumn column)
Adds a column to the result set for magazine view.
|
void |
addRow(JSONResultSetRow row)
Adds a new row to the result set.
|
JSONResultSetColumn |
getColumn(int i)
Returns a specific column in the result set.
|
int |
getColumnCount()
Returns a the number of columns in the result set.
|
java.lang.String |
getContinuationData()
Returns the continuation data.
|
JSONResultSetColumn |
getMagazineColum(int i)
Returns a magazine view column.
|
int |
getMagazineColumnCount()
Returns the count of the number of magazine view columns.
|
int |
getPageSize()
Returns the page size
|
JSONResultSetRow |
getRow(int i)
Returns a specific row in the result set.
|
int |
getRowCount()
Returns the number of rows in the result set.
|
void |
setContinuationData(java.lang.String continuationData)
Sets continuation data.
|
void |
setPageSize(int pageSize)
Sets the page size.
|
addErrorMessage, addInfoMessage, addWarningMessage, hasErrorsisValidObject, isValidType, parse, parse, parse, put, serialize, serialize, serialize, serialize, serialize, serialize, toStringclear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuespublic JSONResultSetResponse()
public void addColumn(JSONResultSetColumn column)
column - an instance of JSONResultSetColumn describing the new column.public int getColumnCount()
public JSONResultSetColumn getColumn(int i)
Note: The original JSONObject for the column may be replaced (with JSONResultSetColumn) after using this method.
i - the index of the column.public void addMagazineColumn(JSONResultSetColumn column)
column - an instance of JSONResultSetMagazineColumnpublic int getMagazineColumnCount()
public JSONResultSetColumn getMagazineColum(int i)
Note: The original JSONObject for the column may be replaced (with JSONResultSetColumn) after using this method.
i - the index of the column.public void addRow(JSONResultSetRow row)
row - and instance of JSONResultSetRow for the new row.public int getRowCount()
public JSONResultSetRow getRow(int i)
Note: The original JSONObject for the row may be replaced (with JSONResultSetRow) after using this method.
i - the index of the row.public void setPageSize(int pageSize)
pageSize - public int getPageSize()
public void setContinuationData(java.lang.String continuationData)
continuationData - public java.lang.String getContinuationData()