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.math.BigDecimal;
020    import java.util.LinkedHashMap;
021    
022    import org.kuali.kfs.coa.businessobject.Account;
023    import org.kuali.kfs.coa.businessobject.Chart;
024    import org.kuali.kfs.coa.businessobject.ObjectLevel;
025    import org.kuali.kfs.coa.businessobject.ObjectCode;
026    import org.kuali.kfs.coa.businessobject.ObjectType;
027    import org.kuali.kfs.coa.businessobject.SubAccount;
028    import org.kuali.kfs.coa.businessobject.SubObjectCode;
029    import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
030    import org.kuali.rice.kns.util.KualiInteger;
031    
032    /**
033     * 
034     */
035    public class BudgetConstructionBalanceByAccount extends PersistableBusinessObjectBase {
036    
037        private String principalId;
038        private Integer universityFiscalYear;
039        private String chartOfAccountsCode;
040        private String accountNumber;
041        private String subAccountNumber;
042        private String financialObjectCode;
043        private String financialSubObjectCode;
044        private String financialObjectTypeCode;
045        private String financialObjectLevelCode;
046        private String typeFinancialReportSortCode;
047        private String financialConsolidationSortCode;
048        private String levelFinancialReportSortCode;
049        private BigDecimal appointmentRequestedFteQuantity;
050        private BigDecimal appointmentRequestedCsfFteQuantity;
051        private BigDecimal csfFullTimeEmploymentQuantity;
052        private KualiInteger accountLineAnnualBalanceAmount;
053        private KualiInteger financialBeginningBalanceLineAmount;
054        private BigDecimal positionCsfLeaveFteQuantity;
055    
056        private ObjectCode financialObject;
057        private Account account;
058        private Chart chartOfAccounts;
059        private SubAccount subAccount;
060        private SubObjectCode financialSubObject;
061        private ObjectLevel financialObjectLevel;
062        private ObjectType financialObjectType;
063    
064        /**
065         * Default constructor.
066         */
067        public BudgetConstructionBalanceByAccount() {
068    
069        }
070    
071        /**
072         * Gets the principalId attribute.
073         * 
074         * @return Returns the principalId
075         */
076        public String getPrincipalId() {
077            return principalId;
078        }
079    
080        /**
081         * Sets the principalId attribute.
082         * 
083         * @param principalId The principalId to set.
084         */
085        public void setPrincipalId(String principalId) {
086            this.principalId = principalId;
087        }
088    
089    
090        /**
091         * Gets the universityFiscalYear attribute.
092         * 
093         * @return Returns the universityFiscalYear
094         */
095        public Integer getUniversityFiscalYear() {
096            return universityFiscalYear;
097        }
098    
099        /**
100         * Sets the universityFiscalYear attribute.
101         * 
102         * @param universityFiscalYear The universityFiscalYear to set.
103         */
104        public void setUniversityFiscalYear(Integer universityFiscalYear) {
105            this.universityFiscalYear = universityFiscalYear;
106        }
107    
108    
109        /**
110         * Gets the chartOfAccountsCode attribute.
111         * 
112         * @return Returns the chartOfAccountsCode
113         */
114        public String getChartOfAccountsCode() {
115            return chartOfAccountsCode;
116        }
117    
118        /**
119         * Sets the chartOfAccountsCode attribute.
120         * 
121         * @param chartOfAccountsCode The chartOfAccountsCode to set.
122         */
123        public void setChartOfAccountsCode(String chartOfAccountsCode) {
124            this.chartOfAccountsCode = chartOfAccountsCode;
125        }
126    
127    
128        /**
129         * Gets the accountNumber attribute.
130         * 
131         * @return Returns the accountNumber
132         */
133        public String getAccountNumber() {
134            return accountNumber;
135        }
136    
137        /**
138         * Sets the accountNumber attribute.
139         * 
140         * @param accountNumber The accountNumber to set.
141         */
142        public void setAccountNumber(String accountNumber) {
143            this.accountNumber = accountNumber;
144        }
145    
146    
147        /**
148         * Gets the subAccountNumber attribute.
149         * 
150         * @return Returns the subAccountNumber
151         */
152        public String getSubAccountNumber() {
153            return subAccountNumber;
154        }
155    
156        /**
157         * Sets the subAccountNumber attribute.
158         * 
159         * @param subAccountNumber The subAccountNumber to set.
160         */
161        public void setSubAccountNumber(String subAccountNumber) {
162            this.subAccountNumber = subAccountNumber;
163        }
164    
165    
166        /**
167         * Gets the financialObjectCode attribute.
168         * 
169         * @return Returns the financialObjectCode
170         */
171        public String getFinancialObjectCode() {
172            return financialObjectCode;
173        }
174    
175        /**
176         * Sets the financialObjectCode attribute.
177         * 
178         * @param financialObjectCode The financialObjectCode to set.
179         */
180        public void setFinancialObjectCode(String financialObjectCode) {
181            this.financialObjectCode = financialObjectCode;
182        }
183    
184    
185        /**
186         * Gets the financialSubObjectCode attribute.
187         * 
188         * @return Returns the financialSubObjectCode
189         */
190        public String getFinancialSubObjectCode() {
191            return financialSubObjectCode;
192        }
193    
194        /**
195         * Sets the financialSubObjectCode attribute.
196         * 
197         * @param financialSubObjectCode The financialSubObjectCode to set.
198         */
199        public void setFinancialSubObjectCode(String financialSubObjectCode) {
200            this.financialSubObjectCode = financialSubObjectCode;
201        }
202    
203    
204        /**
205         * Gets the financialObjectTypeCode attribute.
206         * 
207         * @return Returns the financialObjectTypeCode
208         */
209        public String getFinancialObjectTypeCode() {
210            return financialObjectTypeCode;
211        }
212    
213        /**
214         * Sets the financialObjectTypeCode attribute.
215         * 
216         * @param financialObjectTypeCode The financialObjectTypeCode to set.
217         */
218        public void setFinancialObjectTypeCode(String financialObjectTypeCode) {
219            this.financialObjectTypeCode = financialObjectTypeCode;
220        }
221    
222    
223        /**
224         * Gets the financialObjectLevelCode attribute.
225         * 
226         * @return Returns the financialObjectLevelCode
227         */
228        public String getFinancialObjectLevelCode() {
229            return financialObjectLevelCode;
230        }
231    
232        /**
233         * Sets the financialObjectLevelCode attribute.
234         * 
235         * @param financialObjectLevelCode The financialObjectLevelCode to set.
236         */
237        public void setFinancialObjectLevelCode(String financialObjectLevelCode) {
238            this.financialObjectLevelCode = financialObjectLevelCode;
239        }
240    
241    
242        /**
243         * Gets the typeFinancialReportSortCode attribute.
244         * 
245         * @return Returns the typeFinancialReportSortCode
246         */
247        public String getTypeFinancialReportSortCode() {
248            return typeFinancialReportSortCode;
249        }
250    
251        /**
252         * Sets the typeFinancialReportSortCode attribute.
253         * 
254         * @param typeFinancialReportSortCode The typeFinancialReportSortCode to set.
255         */
256        public void setTypeFinancialReportSortCode(String typeFinancialReportSortCode) {
257            this.typeFinancialReportSortCode = typeFinancialReportSortCode;
258        }
259    
260    
261        /**
262         * Gets the financialConsolidationSortCode attribute.
263         * 
264         * @return Returns the financialConsolidationSortCode
265         */
266        public String getFinancialConsolidationSortCode() {
267            return financialConsolidationSortCode;
268        }
269    
270        /**
271         * Sets the financialConsolidationSortCode attribute.
272         * 
273         * @param financialConsolidationSortCode The financialConsolidationSortCode to set.
274         */
275        public void setFinancialConsolidationSortCode(String financialConsolidationSortCode) {
276            this.financialConsolidationSortCode = financialConsolidationSortCode;
277        }
278    
279    
280        /**
281         * Gets the levelFinancialReportSortCode attribute.
282         * 
283         * @return Returns the levelFinancialReportSortCode
284         */
285        public String getLevelFinancialReportSortCode() {
286            return levelFinancialReportSortCode;
287        }
288    
289        /**
290         * Sets the levelFinancialReportSortCode attribute.
291         * 
292         * @param levelFinancialReportSortCode The levelFinancialReportSortCode to set.
293         */
294        public void setLevelFinancialReportSortCode(String levelFinancialReportSortCode) {
295            this.levelFinancialReportSortCode = levelFinancialReportSortCode;
296        }
297    
298    
299        /**
300         * Gets the appointmentRequestedFteQuantity attribute.
301         * 
302         * @return Returns the appointmentRequestedFteQuantity
303         */
304        public BigDecimal getAppointmentRequestedFteQuantity() {
305            return appointmentRequestedFteQuantity;
306        }
307    
308        /**
309         * Sets the appointmentRequestedFteQuantity attribute.
310         * 
311         * @param appointmentRequestedFteQuantity The appointmentRequestedFteQuantity to set.
312         */
313        public void setAppointmentRequestedFteQuantity(BigDecimal appointmentRequestedFteQuantity) {
314            this.appointmentRequestedFteQuantity = appointmentRequestedFteQuantity;
315        }
316    
317    
318        /**
319         * Gets the appointmentRequestedCsfFteQuantity attribute.
320         * 
321         * @return Returns the appointmentRequestedCsfFteQuantity
322         */
323        public BigDecimal getAppointmentRequestedCsfFteQuantity() {
324            return appointmentRequestedCsfFteQuantity;
325        }
326    
327        /**
328         * Sets the appointmentRequestedCsfFteQuantity attribute.
329         * 
330         * @param appointmentRequestedCsfFteQuantity The appointmentRequestedCsfFteQuantity to set.
331         */
332        public void setAppointmentRequestedCsfFteQuantity(BigDecimal appointmentRequestedCsfFteQuantity) {
333            this.appointmentRequestedCsfFteQuantity = appointmentRequestedCsfFteQuantity;
334        }
335    
336    
337        /**
338         * Gets the csfFullTimeEmploymentQuantity attribute.
339         * 
340         * @return Returns the csfFullTimeEmploymentQuantity
341         */
342        public BigDecimal getCsfFullTimeEmploymentQuantity() {
343            return csfFullTimeEmploymentQuantity;
344        }
345    
346        /**
347         * Sets the csfFullTimeEmploymentQuantity attribute.
348         * 
349         * @param csfFullTimeEmploymentQuantity The csfFullTimeEmploymentQuantity to set.
350         */
351        public void setCsfFullTimeEmploymentQuantity(BigDecimal csfFullTimeEmploymentQuantity) {
352            this.csfFullTimeEmploymentQuantity = csfFullTimeEmploymentQuantity;
353        }
354    
355    
356        /**
357         * Gets the accountLineAnnualBalanceAmount attribute.
358         * 
359         * @return Returns the accountLineAnnualBalanceAmount.
360         */
361        public KualiInteger getAccountLineAnnualBalanceAmount() {
362            return accountLineAnnualBalanceAmount;
363        }
364    
365        /**
366         * Sets the accountLineAnnualBalanceAmount attribute value.
367         * 
368         * @param accountLineAnnualBalanceAmount The accountLineAnnualBalanceAmount to set.
369         */
370        public void setAccountLineAnnualBalanceAmount(KualiInteger accountLineAnnualBalanceAmount) {
371            this.accountLineAnnualBalanceAmount = accountLineAnnualBalanceAmount;
372        }
373    
374        /**
375         * Gets the financialBeginningBalanceLineAmount attribute.
376         * 
377         * @return Returns the financialBeginningBalanceLineAmount.
378         */
379        public KualiInteger getFinancialBeginningBalanceLineAmount() {
380            return financialBeginningBalanceLineAmount;
381        }
382    
383        /**
384         * Sets the financialBeginningBalanceLineAmount attribute value.
385         * 
386         * @param financialBeginningBalanceLineAmount The financialBeginningBalanceLineAmount to set.
387         */
388        public void setFinancialBeginningBalanceLineAmount(KualiInteger financialBeginningBalanceLineAmount) {
389            this.financialBeginningBalanceLineAmount = financialBeginningBalanceLineAmount;
390        }
391    
392        /**
393         * Gets the positionCsfLeaveFteQuantity attribute.
394         * 
395         * @return Returns the positionCsfLeaveFteQuantity
396         */
397        public BigDecimal getPositionCsfLeaveFteQuantity() {
398            return positionCsfLeaveFteQuantity;
399        }
400    
401        /**
402         * Sets the positionCsfLeaveFteQuantity attribute.
403         * 
404         * @param positionCsfLeaveFteQuantity The positionCsfLeaveFteQuantity to set.
405         */
406        public void setPositionCsfLeaveFteQuantity(BigDecimal positionCsfLeaveFteQuantity) {
407            this.positionCsfLeaveFteQuantity = positionCsfLeaveFteQuantity;
408        }
409    
410    
411        /**
412         * Gets the financialObject attribute.
413         * 
414         * @return Returns the financialObject
415         */
416        public ObjectCode getFinancialObject() {
417            return financialObject;
418        }
419    
420        /**
421         * Sets the financialObject attribute.
422         * 
423         * @param financialObject The financialObject to set.
424         * @deprecated
425         */
426        public void setFinancialObject(ObjectCode financialObject) {
427            this.financialObject = financialObject;
428        }
429    
430        /**
431         * Gets the account attribute.
432         * 
433         * @return Returns the account
434         */
435        public Account getAccount() {
436            return account;
437        }
438    
439        /**
440         * Sets the account attribute.
441         * 
442         * @param account The account to set.
443         * @deprecated
444         */
445        public void setAccount(Account account) {
446            this.account = account;
447        }
448    
449        /**
450         * Gets the chartOfAccounts attribute.
451         * 
452         * @return Returns the chartOfAccounts
453         */
454        public Chart getChartOfAccounts() {
455            return chartOfAccounts;
456        }
457    
458        /**
459         * Sets the chartOfAccounts attribute.
460         * 
461         * @param chartOfAccounts The chartOfAccounts to set.
462         * @deprecated
463         */
464        public void setChartOfAccounts(Chart chartOfAccounts) {
465            this.chartOfAccounts = chartOfAccounts;
466        }
467    
468        /**
469         * Gets the financialObjectLevel attribute.
470         * 
471         * @return Returns the financialObjectLevel.
472         */
473        public ObjectLevel getFinancialObjectLevel() {
474            return financialObjectLevel;
475        }
476    
477        /**
478         * Sets the financialObjectLevel attribute value.
479         * 
480         * @param financialObjectLevel The financialObjectLevel to set.
481         * @deprecated
482         */
483        public void setFinancialObjectLevel(ObjectLevel financialObjectLevel) {
484            this.financialObjectLevel = financialObjectLevel;
485        }
486    
487        /**
488         * Gets the financialObjectType attribute.
489         * 
490         * @return Returns the financialObjectType.
491         */
492        public ObjectType getFinancialObjectType() {
493            return financialObjectType;
494        }
495    
496        /**
497         * Sets the financialObjectType attribute value.
498         * 
499         * @param financialObjectType The financialObjectType to set.
500         * @deprecated
501         */
502        public void setFinancialObjectType(ObjectType financialObjectType) {
503            this.financialObjectType = financialObjectType;
504        }
505    
506        /**
507         * Gets the financialSubObject attribute.
508         * 
509         * @return Returns the financialSubObject.
510         */
511        public SubObjectCode getFinancialSubObject() {
512            return financialSubObject;
513        }
514    
515        /**
516         * Sets the financialSubObject attribute value.
517         * 
518         * @param financialSubObject The financialSubObject to set.
519         * @deprecated
520         */
521        public void setFinancialSubObject(SubObjectCode financialSubObject) {
522            this.financialSubObject = financialSubObject;
523        }
524    
525        /**
526         * Gets the subAccount attribute.
527         * 
528         * @return Returns the subAccount.
529         */
530        public SubAccount getSubAccount() {
531            return subAccount;
532        }
533    
534        /**
535         * Sets the subAccount attribute value.
536         * 
537         * @param subAccount The subAccount to set.
538         * @deprecated
539         */
540        public void setSubAccount(SubAccount subAccount) {
541            this.subAccount = subAccount;
542        }
543    
544        /**
545         * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
546         */
547        protected LinkedHashMap toStringMapper() {
548            LinkedHashMap m = new LinkedHashMap();
549            m.put("principalId", this.principalId);
550            if (this.universityFiscalYear != null) {
551                m.put("universityFiscalYear", this.universityFiscalYear.toString());
552            }
553            m.put("chartOfAccountsCode", this.chartOfAccountsCode);
554            m.put("accountNumber", this.accountNumber);
555            m.put("subAccountNumber", this.subAccountNumber);
556            m.put("financialObjectCode", this.financialObjectCode);
557            m.put("financialSubObjectCode", this.financialSubObjectCode);
558            return m;
559        }
560    
561    }
562