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.util.LinkedHashMap;
019
020 import org.apache.ojb.broker.PersistenceBroker;
021 import org.apache.ojb.broker.PersistenceBrokerException;
022 import org.kuali.kfs.module.endow.EndowPropertyConstants;
023 import org.kuali.rice.kns.bo.Inactivateable;
024 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
025 import org.kuali.rice.kns.util.KualiInteger;
026
027 /**
028 * The KemidSourceOfFunds class describes the source of funds and the corpus total for endowments.
029 */
030 public class KemidSourceOfFunds extends PersistableBusinessObjectBase implements Inactivateable {
031 private String kemid;
032 private KualiInteger kemidFundSourceSequenceNumber;
033 private String fundSourceCode;
034 private String openedFromKemid;
035 private String fundHistory;
036 private String additionalSourceData;
037 private boolean active;
038
039 private KEMID kemidObjRef;
040 private KEMID openedFromKemidObjRef;
041 private FundSourceCode fundSource;
042
043 /**
044 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
045 */
046 @Override
047 protected LinkedHashMap toStringMapper() {
048 LinkedHashMap<String, String> m = new LinkedHashMap<String, String>();
049 m.put(EndowPropertyConstants.KEMID, this.kemid);
050 m.put(EndowPropertyConstants.KEMID_FND_SRC_SEQ_NBR, String.valueOf(kemidFundSourceSequenceNumber));
051 m.put(EndowPropertyConstants.KEMID_FND_SRC_CD, fundSourceCode);
052 return m;
053 }
054
055 /**
056 * Gets the kemid.
057 *
058 * @return kemid
059 */
060 public String getKemid() {
061 return kemid;
062 }
063
064 /**
065 * Sets the kemid.
066 *
067 * @param kemid
068 */
069 public void setKemid(String kemid) {
070 this.kemid = kemid;
071 }
072
073 /**
074 * Gets the kemidFundSourceSequenceNumber.
075 *
076 * @return kemidFundSourceSequenceNumber
077 */
078 public KualiInteger getKemidFundSourceSequenceNumber() {
079 return kemidFundSourceSequenceNumber;
080 }
081
082 /**
083 * Sets the kemidFundSourceSequenceNumber.
084 *
085 * @param kemidFundSourceSequenceNumber
086 */
087 public void setKemidFundSourceSequenceNumber(KualiInteger kemidFundSourceSequenceNumber) {
088 this.kemidFundSourceSequenceNumber = kemidFundSourceSequenceNumber;
089 }
090
091 /**
092 * Gets the fundSourceCode.
093 *
094 * @return fundSourceCode
095 */
096 public String getFundSourceCode() {
097 return fundSourceCode;
098 }
099
100 /**
101 * Sets the fundSourceCode.
102 *
103 * @param fundSourceCode
104 */
105 public void setFundSourceCode(String fundSourceCode) {
106 this.fundSourceCode = fundSourceCode;
107 }
108
109 /**
110 * Gets the openedFromKemid.
111 *
112 * @return openedFromKemid
113 */
114 public String getOpenedFromKemid() {
115 return openedFromKemid;
116 }
117
118 /**
119 * Sets the openedFromKemid.
120 *
121 * @param openedFromKemid
122 */
123 public void setOpenedFromKemid(String openedFromKemid) {
124 this.openedFromKemid = openedFromKemid;
125 }
126
127 /**
128 * Sets the fundHistory.
129 *
130 * @return fundHistory
131 */
132 public String getFundHistory() {
133 return fundHistory;
134 }
135
136 /**
137 * Sets the fundHistory.
138 *
139 * @param fundHistory
140 */
141 public void setFundHistory(String fundHistory) {
142 this.fundHistory = fundHistory;
143 }
144
145 /**
146 * Gets the additionalSourceData.
147 *
148 * @return additionalSourceData
149 */
150 public String getAdditionalSourceData() {
151 return additionalSourceData;
152 }
153
154 /**
155 * Sets the additionalSourceData.
156 *
157 * @param additionalSourceData
158 */
159 public void setAdditionalSourceData(String additionalSourceData) {
160 this.additionalSourceData = additionalSourceData;
161 }
162
163 /**
164 * @see org.kuali.rice.kns.bo.Inactivateable#isActive()
165 */
166 public boolean isActive() {
167 return active;
168 }
169
170 /**
171 * @see org.kuali.rice.kns.bo.Inactivateable#setActive(boolean)
172 */
173 public void setActive(boolean active) {
174 this.active = active;
175 }
176
177 /**
178 * Gets the kemidObjRef.
179 *
180 * @return kemidObjRef
181 */
182 public KEMID getKemidObjRef() {
183 return kemidObjRef;
184 }
185
186 /**
187 * Sets the kemidObjRef.
188 *
189 * @param kemidObjRef
190 */
191 public void setKemidObjRef(KEMID kemidObjRef) {
192 this.kemidObjRef = kemidObjRef;
193 }
194
195 /**
196 * Gets the fundSource.
197 *
198 * @return fundSource
199 */
200 public FundSourceCode getFundSource() {
201 return fundSource;
202 }
203
204 /**
205 * Sets the fundSource.
206 *
207 * @param fundSource
208 */
209 public void setFundSource(FundSourceCode fundSource) {
210 this.fundSource = fundSource;
211 }
212
213 /**
214 * Gets the openedFromKemidObjRef.
215 *
216 * @return openedFromKemidObjRef
217 */
218 public KEMID getOpenedFromKemidObjRef() {
219 return openedFromKemidObjRef;
220 }
221
222 /**
223 * Sets the openedFromKemidObjRef.
224 *
225 * @param openedFromKemidObjRef
226 */
227 public void setOpenedFromKemidObjRef(KEMID openedFromKemidObjRef) {
228 this.openedFromKemidObjRef = openedFromKemidObjRef;
229 }
230
231 }