PageDto.java 892 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. package com.java110.dto;
  2. import java.io.Serializable;
  3. /**
  4. * 分页数据封装对象
  5. */
  6. public class PageDto extends Dto implements Serializable {
  7. public static final int DEFAULT_PAGE = -1;
  8. // 分页页数
  9. private int page = DEFAULT_PAGE;
  10. // 行数
  11. private int row;
  12. //页数
  13. private int records;
  14. // 总记录数
  15. private int total;
  16. public int getPage() {
  17. return page;
  18. }
  19. public void setPage(int page) {
  20. this.page = page;
  21. }
  22. public int getRow() {
  23. return row;
  24. }
  25. public void setRow(int row) {
  26. this.row = row;
  27. }
  28. public int getTotal() {
  29. return total;
  30. }
  31. public void setTotal(int total) {
  32. this.total = total;
  33. }
  34. public int getRecords() {
  35. return records;
  36. }
  37. public void setRecords(int records) {
  38. this.records = records;
  39. }
  40. }