Package com.oopsclick.silk.dbo
Class ResponseObject
- java.lang.Object
-
- com.oopsclick.silk.dbo.ResponseObject
-
public class ResponseObject extends java.lang.Object
The 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 void
addDataElement(java.util.Map<java.lang.String,java.lang.Object> data)
Adds the data element.void
clearData()
Clear data.java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
getData()
Gets the data.int
getDataSize()
Gets the data size.java.lang.String
getJSONString()
java.lang.String
getJSONString(boolean escapeData)
java.lang.String
getJSONString(boolean escapeData, boolean onlyData)
Gets the returns the data in a string JSON formatjava.lang.String
getLevelTreeColumn()
Gets the level control column.int
getOperationResult()
Gets the result operation.java.lang.String
getOrderColumn()
Gets the order column.java.lang.String
getParentTreeColumn()
Gets the parent link column.java.lang.String
getPkColumn()
Gets the Primary Key column.java.lang.String
getRootTreeColumn()
Gets the root link column.void
setData(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> data)
Sets the data.void
setLevelTreeColumn(java.lang.String levelTreeColumn)
Sets the level control column.void
setOperationResult(int operationResult)
Set the result operation.void
setOrderColumn(java.lang.String orderColumn)
Sets the order column.void
setParentTreeColumn(java.lang.String parentTreeColumn)
Sets the parent link column.void
setPkColumn(java.lang.String pkColumn)
Sets the Primary Key column.void
setRootTreeColumn(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()
-
-