Class SearchResponse

java.lang.Object
org.chenile.query.model.SearchResponse

public class SearchResponse extends Object
  • Field Details

    • numRowsReturned

      private int numRowsReturned
    • currentPage

      private int currentPage
    • maxPages

      private int maxPages
    • numRowsInPage

      private int numRowsInPage
    • startRow

      private int startRow
    • endRow

      private int endRow
    • data

      private ResponseRow data
    • list

      private List<ResponseRow> list
    • columnMetadata

      private Map<String,ColumnMetadata> columnMetadata
    • maxRows

      private int maxRows
    • cannedReportName

      private String cannedReportName
    • availableCannedReports

      private List<CannedReport> availableCannedReports
    • hiddenColumns

      private Set<String> hiddenColumns
      Changed from Collection to Set because the array was adding the old values again while updating. Example: ["id", "tenantId"] if passed twice the hidden columns was getting stored as ["id", "tenantId", "id", "tenantId"]
  • Constructor Details

    • SearchResponse

      public SearchResponse()
  • Method Details

    • getCannedReportName

      public String getCannedReportName()
    • setCannedReportName

      public void setCannedReportName(String cannedReportName)
    • getAvailableCannedReports

      public List<CannedReport> getAvailableCannedReports()
    • setAvailableCannedReports

      public void setAvailableCannedReports(List<CannedReport> cannedReportNames)
    • getHiddenColumns

      public Set<String> getHiddenColumns()
    • setHiddenColumns

      public void setHiddenColumns(Set<String> hiddenColumns)
    • getNumRowsReturned

      public int getNumRowsReturned()
      Returns:
      the numRowsReturned
    • setNumRowsReturned

      public void setNumRowsReturned(int numRowsReturned)
      Parameters:
      numRowsReturned - the numRowsReturned to set
    • getCurrentPage

      public int getCurrentPage()
      Returns:
      the currentPage
    • setCurrentPage

      public void setCurrentPage(int currentPage)
      Parameters:
      currentPage - the currentPage to set
    • getMaxPages

      public int getMaxPages()
      Returns:
      the maxPages
    • setMaxPages

      public void setMaxPages(int maxPages)
      Parameters:
      maxPages - the maxPages to set
    • getNumRowsInPage

      public int getNumRowsInPage()
      Returns:
      the numRows
    • setNumRowsInPage

      public void setNumRowsInPage(int numRows)
      Parameters:
      numRows - the numRows to set
    • getStartRow

      public int getStartRow()
      Returns:
      the startRow
    • setStartRow

      public void setStartRow(int startRow)
      Parameters:
      startRow - the startRow to set
    • getEndRow

      public int getEndRow()
      Returns:
      the endRow
    • setEndRow

      public void setEndRow(int endRow)
      Parameters:
      endRow - the endRow to set
    • getList

      public List<ResponseRow> getList()
      Returns:
      the list
    • setList

      public void setList(List<ResponseRow> list)
      Parameters:
      list - the list to set
    • getColumnMetadata

      public Map<String,ColumnMetadata> getColumnMetadata()
    • setColumnMetadata

      public void setColumnMetadata(Map<String,ColumnMetadata> metadata)
    • setMaxRows

      public void setMaxRows(int maxRows)
    • getMaxRows

      public int getMaxRows()
    • getData

      public ResponseRow getData()
    • setData

      public void setData(ResponseRow data)