OWL ITS + 탐지시스템(인터넷 진흥원)
이민희
2022-02-18 612b5a21417f3c8dcaed84c1c0691dc883088f61
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
package kr.wisestone.owl.vo;
 
public class ResPage {
         /** 현재 페이지 */
        private int page;
         /** 페이지 로우 */
        private int pageSize;
         private int totalPage;
         /** 전체 로우 카운트 */
        private long totalCount;
 
        public ResPage() {
        }
 
        /**
         * @param page
         * @param pageSize
         * @param totalPage
         * @param totalCount
         */
        public ResPage(int page, int pageSize, int totalPage, long totalCount) {
            this.page=page;
            this.pageSize=pageSize;
            this.totalPage=totalPage;
            this.totalCount=totalCount;
        }
 
        public ResPage(int page, int pageSize, int totalCount) {
            this.page=page;
            this.pageSize=pageSize;
            this.totalCount=totalCount;
 
            this.totalPage = 0;
 
            this.totalPage = totalCount / pageSize;
            if (totalCount % pageSize > 0) {
                this.totalPage += 1;
            }
        }
 
        /**
         * @return the page
         */
        public int getPage() {
            return this.page;
        }
        /**
         * @param page the page to set
         */
        public void setPage(int page) {
            this.page = page;
        }
        /**
         * @return the pageSize
         */
        public int getPageSize() {
            return this.pageSize;
        }
        /**
         * @param pageSize the pageSize to set
         */
        public void setPageSize(int pageSize) {
            this.pageSize = pageSize;
        }
        /**
         * @return the totalPage
         */
        public int getTotalPage() {
            return this.totalPage;
        }
        /**
         * @param totalPage the totalPage to set
         */
        public void setTotalPage(int totalPage) {
            this.totalPage = totalPage;
        }
        /**
         * @return the totalCount
         */
        public long getTotalCount() {
            return this.totalCount;
        }
        /**
         * @param totalCount the totalCount to set
         */
        public void setTotalCount(long totalCount) {
            this.totalCount = totalCount;
        }
 
        @Override
        public String toString() {
            return "ResPage [page=" + this.page + ", pageSize=" + this.pageSize
                    + ", totalPage=" + this.totalPage + ", totalCount=" + this.totalCount
                    + "]";
        }
 
 
}