b8f23bc98949ab0d037c40f7e340a32ac9b6b929.svn-base 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. package com.sinosoft.cm.vo;
  2. import com.sinosoft.cm.common.JSONString;
  3. public class Result extends JSONString{
  4. public static final String STATE_SUCCESS="SUCCESS";
  5. public static final String STATE_FAILURE="FAILURE";
  6. private String rows;
  7. private String state;//操作状态;state:1.成功:SUCCESS;2.失败:FAILURE
  8. private int page;//
  9. private int total;//查询结果总数
  10. public Result(String rows,String state,int page,int total){
  11. this.rows=rows;
  12. this.state=state;
  13. this.page=page;
  14. this.total=total;
  15. }
  16. public Result() {
  17. }
  18. public String getRows() {
  19. return rows;
  20. }
  21. public void setRows(String rows) {
  22. this.rows = rows;
  23. }
  24. public String getState() {
  25. return state;
  26. }
  27. public void setState(String state) {
  28. this.state = state;
  29. }
  30. public int getPage() {
  31. return page;
  32. }
  33. public void setPage(int page) {
  34. this.page = page;
  35. }
  36. public int getTotal() {
  37. return total;
  38. }
  39. public void setTotal(int total) {
  40. this.total = total;
  41. }
  42. public static String getStateSuccess() {
  43. return STATE_SUCCESS;
  44. }
  45. public static String getStateFailure() {
  46. return STATE_FAILURE;
  47. }
  48. @Override
  49. public String toString() {
  50. return "Result [rows=" + rows + ", state=" + state + ", page=" + page
  51. + ", total=" + total + "]";
  52. }
  53. }