Package com.oopsclick.silk.dbo
Class ResponseObject
- java.lang.Object
-
- com.oopsclick.silk.dbo.ResponseObject
-
public class ResponseObject extends java.lang.ObjectThe Class ResponseObject.
-
-
Constructor Summary
Constructors Constructor Description ResponseObject()Instantiates a new return object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDataElement(java.util.Map<java.lang.String,java.lang.Object> data)Adds the data element.voidclearData()Clear data.java.util.List<java.util.Map<java.lang.String,java.lang.Object>>getData()Gets the data.intgetDataSize()Gets the data size.java.lang.StringgetJSONString()java.lang.StringgetJSONString(boolean escapeData)java.lang.StringgetJSONString(boolean escapeData, boolean onlyData)Gets the returns the data in a string JSON formatjava.lang.StringgetLevelTreeColumn()Gets the level control column.intgetOperationResult()Gets the result operation.java.lang.StringgetOrderColumn()Gets the order column.java.lang.StringgetParentTreeColumn()Gets the parent link column.java.lang.StringgetPkColumn()Gets the Primary Key column.java.lang.StringgetRootTreeColumn()Gets the root link column.voidsetData(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> data)Sets the data.voidsetLevelTreeColumn(java.lang.String levelTreeColumn)Sets the level control column.voidsetOperationResult(int operationResult)Set the result operation.voidsetOrderColumn(java.lang.String orderColumn)Sets the order column.voidsetParentTreeColumn(java.lang.String parentTreeColumn)Sets the parent link column.voidsetPkColumn(java.lang.String pkColumn)Sets the Primary Key column.voidsetRootTreeColumn(java.lang.String rootTreeColumn)Sets the root link column.
-
-
-
Method Detail
-
getDataSize
public int getDataSize()
Gets the data size.- Returns:
- the data size
-
getData
public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getData()
Gets the data.- Returns:
- the data
-
setData
public void setData(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> data)
Sets the data.- Parameters:
data- the data
-
addDataElement
public void addDataElement(java.util.Map<java.lang.String,java.lang.Object> data)
Adds the data element.- Parameters:
data- the data
-
clearData
public void clearData()
Clear data.
-
setOperationResult
public void setOperationResult(int operationResult)
Set the result operation.- Parameters:
operationResult- the operation result value
-
getOperationResult
public int getOperationResult()
Gets the result operation.- Returns:
- the result operation
-
getPkColumn
public java.lang.String getPkColumn()
Gets the Primary Key column.- Returns:
- pkColumn
-
setPkColumn
public void setPkColumn(java.lang.String pkColumn)
Sets the Primary Key column.- Parameters:
pkColumn- the new pk column
-
getRootTreeColumn
public java.lang.String getRootTreeColumn()
Gets the root link column.- Returns:
- the root link column
-
setRootTreeColumn
public void setRootTreeColumn(java.lang.String rootTreeColumn)
Sets the root link column.- Parameters:
rootTreeColumn- the new root tree column
-
getParentTreeColumn
public java.lang.String getParentTreeColumn()
Gets the parent link column.- Returns:
- the parent link column
-
setParentTreeColumn
public void setParentTreeColumn(java.lang.String parentTreeColumn)
Sets the parent link column.- Parameters:
parentTreeColumn- the new parent tree column
-
getLevelTreeColumn
public java.lang.String getLevelTreeColumn()
Gets the level control column.- Returns:
- the level control column
-
setLevelTreeColumn
public void setLevelTreeColumn(java.lang.String levelTreeColumn)
Sets the level control column.- Parameters:
levelTreeColumn- the new level tree column
-
getOrderColumn
public java.lang.String getOrderColumn()
Gets the order column.- Returns:
- the order column
-
setOrderColumn
public void setOrderColumn(java.lang.String orderColumn)
Sets the order column.- Parameters:
orderColumn- the new order column
-
getJSONString
public java.lang.String getJSONString(boolean escapeData, boolean onlyData)Gets the returns the data in a string JSON format- Parameters:
escapeData- the indication if the JSON will be escapedonlyData- the indication if the JSON will return only the data part- Returns:
- the JSON
-
getJSONString
public java.lang.String getJSONString(boolean escapeData)
-
getJSONString
public java.lang.String getJSONString()
-
-