Changes between Version 1 and Version 2 of egov/SearchVO

차이점 주위로
다음 차이점은 무시하기:
작성자:
anonymous (IP: 221.150.127.103)
날짜/시간:
2013-11-28 PM 5:28:02 (12 년 전)
설명:

--

Legend:

변경되지 않음
추가됨
제거됨
변경됨
  • egov/SearchVO

    v1 v2  
    3030        } 
    3131}}} 
     32 
     33* SearchVO.java 
     34{{{ 
     35/* 
     36 * Copyright 2011 MOPAS(Ministry of Public Administration and Security). 
     37 * 
     38 * Licensed under the Apache License, Version 2.0 (the "License"); 
     39 * you may not use this file except in compliance with the License. 
     40 * You may obtain a copy of the License at 
     41 * 
     42 *      http://www.apache.org/licenses/LICENSE-2.0 
     43 * 
     44 * Unless required by applicable law or agreed to in writing, software 
     45 * distributed under the License is distributed on an "AS IS" BASIS, 
     46 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
     47 * See the License for the specific language governing permissions and 
     48 * limitations under the License. 
     49 */ 
     50package egovframework.rte.rex.com.service; 
     51 
     52import java.io.Serializable; 
     53 
     54import javax.xml.bind.annotation.XmlRootElement; 
     55 
     56/** 
     57 * 검색 정보를 담고있는 VO 클래스를 정의한다. 
     58 * @author 실행환경 개발팀 신혜연 
     59 * @since 2011.07.11 
     60 * @version 1.0 
     61 * @see  
     62 * <pre> 
     63 *  == 개정이력(Modification Information) == 
     64 *    
     65 *   수정일      수정자           수정내용 
     66 *  -------    --------    --------------------------- 
     67 *   2011.07.11  신혜연          최초 생성 
     68 *  
     69 * </pre> 
     70 */ 
     71@XmlRootElement 
     72public class SearchVO implements Serializable{ 
     73         
     74         
     75        private static final long serialVersionUID = 472352564053158231L; 
     76         
     77        /** 현재 페이지 */ 
     78        private int pageIndex = 1; 
     79         
     80        /** 검색조건 */ 
     81        private String searchCondition = ""; 
     82         
     83        /** 검색키워드 */ 
     84        private String searchKeyword = ""; 
     85     
     86        /** 검색 사용여부 */ 
     87        private String searchUseYn = ""; 
     88         
     89        /** 페이지 갯수 */ 
     90    private int pageUnit; // properties에서 설정 
     91     
     92    /** 페이지 사이즈 */ 
     93    private int pageSize; // properties에서 설정 
     94     
     95    /** 시작 인덱스 */ 
     96    private int firstIndex = 1; 
     97     
     98    /** 끝 인덱스 */ 
     99    private int lastIndex = 1; 
     100     
     101    /**페이지 별 레코드 갯수  */ 
     102    private int recordCountPerPage = 10;  
     103     
     104    /** 
     105     * 검색 조건을 를 설정한다. 
     106     * @param vo 검색조건 
     107     */ 
     108    public void setSearchVO(SearchVO vo){ 
     109        this.pageIndex = vo.pageIndex; 
     110        this.searchCondition = vo.getSearchCondition(); 
     111        this.searchKeyword = vo.getSearchKeyword(); 
     112        this.searchUseYn = vo.getSearchUseYn(); 
     113        this.pageUnit = vo.pageUnit; 
     114        this.pageSize = vo.pageSize; 
     115        this.firstIndex = vo.firstIndex; 
     116        this.lastIndex = vo.lastIndex; 
     117        this.recordCountPerPage = vo.recordCountPerPage; 
     118    } 
     119        /** 
     120         * 끝인덱스를 반환한다. 
     121         * @return 끝인덱스  
     122         */ 
     123        public int getLastIndex() { 
     124                return lastIndex; 
     125        } 
     126 
     127        /** 
     128         * 끝인덱스를 설정한다. 
     129         * @param lastIndex 를 설정한다.될 끝인덱스  
     130         */ 
     131        public void setLastIndex(int lastIndex) { 
     132                this.lastIndex = lastIndex; 
     133        } 
     134 
     135        /** 
     136         * recordCountPerPage를 반환한다. 
     137         * @return recordCountPerPage 
     138         */ 
     139        public int getRecordCountPerPage() { 
     140                return recordCountPerPage; 
     141        } 
     142 
     143        /** 
     144         * recordCountPerPage를 설정한다. 
     145         * @param recordCountPerPage 를 설정한다.될 recordCountPerPage 
     146         */ 
     147        public void setRecordCountPerPage(int recordCountPerPage) { 
     148                this.recordCountPerPage = recordCountPerPage; 
     149        } 
     150 
     151        /** 
     152         * first Index를 반환한다. 
     153         * @return first Index 
     154         */ 
     155        public int getFirstIndex() { 
     156                return firstIndex; 
     157        } 
     158 
     159        /** 
     160         * first Index를 설정한다. 
     161         * @param firstIndex 를 설정한다.될 first Index 
     162         */ 
     163        public void setFirstIndex(int firstIndex) { 
     164                this.firstIndex = firstIndex; 
     165        } 
     166 
     167        /** 
     168         * 현재 페이지를 반환한다. 
     169         * @return int 현재 페이지 
     170         */ 
     171        public int getPageIndex() { 
     172                return pageIndex; 
     173        } 
     174 
     175        /** 
     176         * 현재 페이지를 설정한다. 
     177         * @param pageIndex 를 설정한다.될 현재 페이지 
     178         */ 
     179        public void setPageIndex(int pageIndex) { 
     180                this.pageIndex = pageIndex; 
     181        } 
     182 
     183         
     184        /** 
     185         * 검색조건을 반환한다. 
     186         * @return String 검색조건 
     187         */ 
     188        public String getSearchCondition() { 
     189                return searchCondition; 
     190        } 
     191 
     192        /** 
     193         * 검색조건을 설정한다. 
     194         * @param searchCondition 검색조건 
     195         */ 
     196        public void setSearchCondition(String searchCondition) { 
     197                this.searchCondition = searchCondition; 
     198        } 
     199 
     200        /** 
     201         * 검색키워드를 반환한다. 
     202         * @return String 검색키워드 
     203         */ 
     204        public String getSearchKeyword() { 
     205                return searchKeyword; 
     206        } 
     207 
     208        /** 
     209         * 검색키워드를 설정한다. 
     210         * @param searchKeyword 를 설정한다.될 검색키워드 
     211         */ 
     212        public void setSearchKeyword(String searchKeyword) { 
     213                this.searchKeyword = searchKeyword; 
     214        } 
     215 
     216        /** 
     217         * 검색사용여부를 반환한다. 
     218         * @return String 검색사용여부 
     219         */ 
     220        public String getSearchUseYn() { 
     221                return searchUseYn; 
     222        } 
     223 
     224        /** 
     225         * 검색사용여부를 설정한다. 
     226         * @param searchUseYn 검색사용여부 
     227         */ 
     228        public void setSearchUseYn(String searchUseYn) { 
     229                this.searchUseYn = searchUseYn; 
     230        } 
     231 
     232        /** 
     233         * 페이지 수를 반환한다. 
     234         * @return int 페이지 수  
     235         */ 
     236        public int getPageUnit() { 
     237                return pageUnit; 
     238        } 
     239 
     240        /** 
     241         * 페이지 수를 설정한다. 
     242         * @param pageUnit 페이지 수 
     243         */ 
     244        public void setPageUnit(int pageUnit) { 
     245                this.pageUnit = pageUnit; 
     246        } 
     247 
     248        /** 
     249         * 페이지 사이즈를 반환한다. 
     250         * @return int 페이지 사이즈 
     251         */ 
     252        public int getPageSize() { 
     253                return pageSize; 
     254        } 
     255 
     256        /** 
     257         * 페이지 사이즈를 설정한다. 
     258         * @param pageSize 페이지 사이즈 
     259         */ 
     260        public void setPageSize(int pageSize) { 
     261                this.pageSize = pageSize; 
     262        } 
     263 
     264        /**  
     265         * 검색에 대한 정보를 문자열로 반환한다. 
     266         * @return String 검색에 대한 정보 
     267         */ 
     268        @Override 
     269        public String toString() { 
     270                return "SearchVO [pageIndex=" + pageIndex + ", searchCondition=" 
     271                                + searchCondition + ", searchKeyword=" + searchKeyword 
     272                                + ", searchUseYn=" + searchUseYn + ", pageUnit=" + pageUnit 
     273                                + ", pageSize=" + pageSize + "]"; 
     274        } 
     275     
     276} 
     277 }}}