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
017 package org.kuali.kfs.module.bc.businessobject;
018
019 import java.util.LinkedHashMap;
020
021 import org.kuali.kfs.coa.businessobject.Account;
022 import org.kuali.kfs.coa.businessobject.Chart;
023 import org.kuali.kfs.coa.businessobject.ObjectCode;
024 import org.kuali.kfs.coa.businessobject.SubAccount;
025 import org.kuali.kfs.coa.businessobject.SubObjectCode;
026 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
027 import org.kuali.rice.kns.util.KualiInteger;
028
029 /**
030 *
031 */
032 public class BudgetConstructionAppointmentFundingReason extends PersistableBusinessObjectBase {
033
034 private Integer universityFiscalYear;
035 private String chartOfAccountsCode;
036 private String accountNumber;
037 private String subAccountNumber;
038 private String financialObjectCode;
039 private String financialSubObjectCode;
040 private String positionNumber;
041 private String emplid;
042 private String appointmentFundingReasonCode;
043 private KualiInteger appointmentFundingReasonAmount;
044
045 private ObjectCode financialObject;
046 private Account account;
047 private Chart chartOfAccounts;
048 private SubAccount subAccount;
049 private SubObjectCode financialSubObject;
050 private BudgetConstructionAppointmentFundingReasonCode appointmentFundingReason;
051
052 /**
053 * Default constructor.
054 */
055 public BudgetConstructionAppointmentFundingReason() {
056
057 }
058
059 /**
060 * Gets the universityFiscalYear attribute.
061 *
062 * @return Returns the universityFiscalYear
063 */
064 public Integer getUniversityFiscalYear() {
065 return universityFiscalYear;
066 }
067
068 /**
069 * Sets the universityFiscalYear attribute.
070 *
071 * @param universityFiscalYear The universityFiscalYear to set.
072 */
073 public void setUniversityFiscalYear(Integer universityFiscalYear) {
074 this.universityFiscalYear = universityFiscalYear;
075 }
076
077
078 /**
079 * Gets the chartOfAccountsCode attribute.
080 *
081 * @return Returns the chartOfAccountsCode
082 */
083 public String getChartOfAccountsCode() {
084 return chartOfAccountsCode;
085 }
086
087 /**
088 * Sets the chartOfAccountsCode attribute.
089 *
090 * @param chartOfAccountsCode The chartOfAccountsCode to set.
091 */
092 public void setChartOfAccountsCode(String chartOfAccountsCode) {
093 this.chartOfAccountsCode = chartOfAccountsCode;
094 }
095
096
097 /**
098 * Gets the accountNumber attribute.
099 *
100 * @return Returns the accountNumber
101 */
102 public String getAccountNumber() {
103 return accountNumber;
104 }
105
106 /**
107 * Sets the accountNumber attribute.
108 *
109 * @param accountNumber The accountNumber to set.
110 */
111 public void setAccountNumber(String accountNumber) {
112 this.accountNumber = accountNumber;
113 }
114
115
116 /**
117 * Gets the subAccountNumber attribute.
118 *
119 * @return Returns the subAccountNumber
120 */
121 public String getSubAccountNumber() {
122 return subAccountNumber;
123 }
124
125 /**
126 * Sets the subAccountNumber attribute.
127 *
128 * @param subAccountNumber The subAccountNumber to set.
129 */
130 public void setSubAccountNumber(String subAccountNumber) {
131 this.subAccountNumber = subAccountNumber;
132 }
133
134
135 /**
136 * Gets the financialObjectCode attribute.
137 *
138 * @return Returns the financialObjectCode
139 */
140 public String getFinancialObjectCode() {
141 return financialObjectCode;
142 }
143
144 /**
145 * Sets the financialObjectCode attribute.
146 *
147 * @param financialObjectCode The financialObjectCode to set.
148 */
149 public void setFinancialObjectCode(String financialObjectCode) {
150 this.financialObjectCode = financialObjectCode;
151 }
152
153
154 /**
155 * Gets the financialSubObjectCode attribute.
156 *
157 * @return Returns the financialSubObjectCode
158 */
159 public String getFinancialSubObjectCode() {
160 return financialSubObjectCode;
161 }
162
163 /**
164 * Sets the financialSubObjectCode attribute.
165 *
166 * @param financialSubObjectCode The financialSubObjectCode to set.
167 */
168 public void setFinancialSubObjectCode(String financialSubObjectCode) {
169 this.financialSubObjectCode = financialSubObjectCode;
170 }
171
172
173 /**
174 * Gets the positionNumber attribute.
175 *
176 * @return Returns the positionNumber
177 */
178 public String getPositionNumber() {
179 return positionNumber;
180 }
181
182 /**
183 * Sets the positionNumber attribute.
184 *
185 * @param positionNumber The positionNumber to set.
186 */
187 public void setPositionNumber(String positionNumber) {
188 this.positionNumber = positionNumber;
189 }
190
191
192 /**
193 * Gets the emplid attribute.
194 *
195 * @return Returns the emplid
196 */
197 public String getEmplid() {
198 return emplid;
199 }
200
201 /**
202 * Sets the emplid attribute.
203 *
204 * @param emplid The emplid to set.
205 */
206 public void setEmplid(String emplid) {
207 this.emplid = emplid;
208 }
209
210
211 /**
212 * Gets the appointmentFundingReasonCode attribute.
213 *
214 * @return Returns the appointmentFundingReasonCode
215 */
216 public String getAppointmentFundingReasonCode() {
217 return appointmentFundingReasonCode;
218 }
219
220 /**
221 * Sets the appointmentFundingReasonCode attribute.
222 *
223 * @param appointmentFundingReasonCode The appointmentFundingReasonCode to set.
224 */
225 public void setAppointmentFundingReasonCode(String appointmentFundingReasonCode) {
226 this.appointmentFundingReasonCode = appointmentFundingReasonCode;
227 }
228
229
230 /**
231 * Gets the appointmentFundingReasonAmount attribute.
232 *
233 * @return Returns the appointmentFundingReasonAmount.
234 */
235 public KualiInteger getAppointmentFundingReasonAmount() {
236 return appointmentFundingReasonAmount;
237 }
238
239 /**
240 * Sets the appointmentFundingReasonAmount attribute value.
241 *
242 * @param appointmentFundingReasonAmount The appointmentFundingReasonAmount to set.
243 */
244 public void setAppointmentFundingReasonAmount(KualiInteger appointmentFundingReasonAmount) {
245 this.appointmentFundingReasonAmount = appointmentFundingReasonAmount;
246 }
247
248 /**
249 * Gets the financialObject attribute.
250 *
251 * @return Returns the financialObject
252 */
253 public ObjectCode getFinancialObject() {
254 return financialObject;
255 }
256
257 /**
258 * Sets the financialObject attribute.
259 *
260 * @param financialObject The financialObject to set.
261 * @deprecated
262 */
263 public void setFinancialObject(ObjectCode financialObject) {
264 this.financialObject = financialObject;
265 }
266
267 /**
268 * Gets the account attribute.
269 *
270 * @return Returns the account
271 */
272 public Account getAccount() {
273 return account;
274 }
275
276 /**
277 * Sets the account attribute.
278 *
279 * @param account The account to set.
280 * @deprecated
281 */
282 public void setAccount(Account account) {
283 this.account = account;
284 }
285
286 /**
287 * Gets the chartOfAccounts attribute.
288 *
289 * @return Returns the chartOfAccounts
290 */
291 public Chart getChartOfAccounts() {
292 return chartOfAccounts;
293 }
294
295 /**
296 * Sets the chartOfAccounts attribute.
297 *
298 * @param chartOfAccounts The chartOfAccounts to set.
299 * @deprecated
300 */
301 public void setChartOfAccounts(Chart chartOfAccounts) {
302 this.chartOfAccounts = chartOfAccounts;
303 }
304
305 /**
306 * Gets the financialSubObject attribute.
307 *
308 * @return Returns the financialSubObject.
309 */
310 public SubObjectCode getFinancialSubObject() {
311 return financialSubObject;
312 }
313
314 /**
315 * Sets the financialSubObject attribute value.
316 *
317 * @param financialSubObject The financialSubObject to set.
318 * @deprecated
319 */
320 public void setFinancialSubObject(SubObjectCode financialSubObject) {
321 this.financialSubObject = financialSubObject;
322 }
323
324 /**
325 * Gets the subAccount attribute.
326 *
327 * @return Returns the subAccount.
328 */
329 public SubAccount getSubAccount() {
330 return subAccount;
331 }
332
333 /**
334 * Sets the subAccount attribute value.
335 *
336 * @param subAccount The subAccount to set.
337 * @deprecated
338 */
339 public void setSubAccount(SubAccount subAccount) {
340 this.subAccount = subAccount;
341 }
342
343 /**
344 * Gets the appointmentFundingReason attribute.
345 *
346 * @return Returns the appointmentFundingReason.
347 */
348 public BudgetConstructionAppointmentFundingReasonCode getAppointmentFundingReason() {
349 return appointmentFundingReason;
350 }
351
352 /**
353 * Sets the appointmentFundingReason attribute value.
354 *
355 * @param appointmentFundingReason The appointmentFundingReason to set.
356 * @deprecated
357 */
358 public void setAppointmentFundingReason(BudgetConstructionAppointmentFundingReasonCode appointmentFundingReason) {
359 this.appointmentFundingReason = appointmentFundingReason;
360 }
361
362 /**
363 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
364 */
365 protected LinkedHashMap toStringMapper() {
366 LinkedHashMap m = new LinkedHashMap();
367 if (this.universityFiscalYear != null) {
368 m.put("universityFiscalYear", this.universityFiscalYear.toString());
369 }
370 m.put("chartOfAccountsCode", this.chartOfAccountsCode);
371 m.put("accountNumber", this.accountNumber);
372 m.put("subAccountNumber", this.subAccountNumber);
373 m.put("financialObjectCode", this.financialObjectCode);
374 m.put("financialSubObjectCode", this.financialSubObjectCode);
375 m.put("positionNumber", this.positionNumber);
376 m.put("emplid", this.emplid);
377 m.put("appointmentFundingReasonCode", this.appointmentFundingReasonCode);
378 return m;
379 }
380
381 }