001    /*
002     * Copyright 2011 The Kuali Foundation.
003     * 
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     * 
008     * http://www.opensource.org/licenses/ecl2.php
009     * 
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.kuali.kfs.module.endow.businessobject;
017    
018    import java.sql.Date;
019    import java.util.LinkedHashMap;
020    
021    import org.kuali.kfs.module.endow.EndowPropertyConstants;
022    import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
023    import org.kuali.rice.kns.util.KualiInteger;
024    
025    /**
026     * This KemidCombineDonorStatement class provides the KEMIDs to be combined for data on a Donor Statement.
027     */
028    public class KemidCombineDonorStatement extends PersistableBusinessObjectBase {
029    
030        private String kemid;
031        private KualiInteger combineDonorSeq;
032        private String combineWithKemid;
033        private Date combineDate;
034        private Date terminateCombineDate;
035    
036        private KEMID kemidObjRef;
037        private KEMID combineWithKemidObjRef;
038    
039        /**
040         * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
041         */
042        @Override
043        protected LinkedHashMap toStringMapper() {
044            LinkedHashMap<String, String> m = new LinkedHashMap<String, String>();
045            m.put(EndowPropertyConstants.KEMID, this.kemid);
046            m.put(EndowPropertyConstants.KEMID_COMBINE_DONOR_STATEMENT_SEQ, String.valueOf(combineDonorSeq));
047            return m;
048        }
049    
050        /**
051         * Gets the combineDate.
052         * 
053         * @return combineDate
054         */
055        public Date getCombineDate() {
056            return combineDate;
057        }
058    
059        /**
060         * Sets the combineDate.
061         * 
062         * @param combineDate
063         */
064        public void setCombineDate(Date combineDate) {
065            this.combineDate = combineDate;
066        }
067    
068        /**
069         * Gets the combineDonorSeq.
070         * 
071         * @return combineDonorSeq
072         */
073        public KualiInteger getCombineDonorSeq() {
074            return combineDonorSeq;
075        }
076    
077        /**
078         * Sets the combineDonorSeq.
079         * 
080         * @param combineDonorSeq
081         */
082        public void setCombineDonorSeq(KualiInteger combineDonorSeq) {
083            this.combineDonorSeq = combineDonorSeq;
084        }
085    
086        /**
087         * Gets the combineWithKemid.
088         * 
089         * @return combineWithKemid
090         */
091        public String getCombineWithKemid() {
092            return combineWithKemid;
093        }
094    
095        /**
096         * Sets the combineWithKemid.
097         * 
098         * @param combineWithKemid
099         */
100        public void setCombineWithKemid(String combineWithKemid) {
101            this.combineWithKemid = combineWithKemid;
102        }
103    
104        /**
105         * Gets the combineWithKemidObjRef.
106         * 
107         * @return combineWithKemidObjRef
108         */
109        public KEMID getCombineWithKemidObjRef() {
110            return combineWithKemidObjRef;
111        }
112    
113        /**
114         * Sets the combineWithKemidObjRef.
115         * 
116         * @param combineWithKemidObjRef
117         */
118        public void setCombineWithKemidObjRef(KEMID combineWithKemidObjRef) {
119            this.combineWithKemidObjRef = combineWithKemidObjRef;
120        }
121    
122        /**
123         * Gets the kemid.
124         * 
125         * @return kemid
126         */
127        public String getKemid() {
128            return kemid;
129        }
130    
131        /**
132         * Sets the kemid.
133         * 
134         * @param kemid
135         */
136        public void setKemid(String kemid) {
137            this.kemid = kemid;
138        }
139    
140        /**
141         * Gets the kemidObjRef.
142         * 
143         * @return kemidObjRef
144         */
145        public KEMID getKemidObjRef() {
146            return kemidObjRef;
147        }
148    
149        /**
150         * Sets the kemidObjRef.
151         * 
152         * @param kemidObjRef
153         */
154        public void setKemidObjRef(KEMID kemidObjRef) {
155            this.kemidObjRef = kemidObjRef;
156        }
157    
158        /**
159         * Gets the terminateCombineDate.
160         * 
161         * @return terminateCombineDate
162         */
163        public Date getTerminateCombineDate() {
164            return terminateCombineDate;
165        }
166    
167        /**
168         * Sets the terminateCombineDate.
169         * 
170         * @param terminateCombineDate
171         */
172        public void setTerminateCombineDate(Date terminateCombineDate) {
173            this.terminateCombineDate = terminateCombineDate;
174        }
175    
176    }