001: /*
002: * Copyright 2006-2007 The Kuali Foundation.
003: *
004: * Licensed under the Educational Community License, Version 1.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/ecl1.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.module.labor.bo;
018:
019: import java.util.LinkedHashMap;
020:
021: import org.kuali.core.bo.PersistableBusinessObjectBase;
022: import org.kuali.kfs.bo.Options;
023: import org.kuali.module.chart.bo.Chart;
024: import org.kuali.module.chart.bo.ObjectCode;
025:
026: /**
027: * Labor business object for Modeling of Position Object Benefit
028: */
029: public class PositionObjectBenefit extends
030: PersistableBusinessObjectBase {
031: private Integer universityFiscalYear;
032: private String chartOfAccountsCode;
033: private String financialObjectCode;
034: private String financialObjectBenefitsTypeCode;
035: private ObjectCode financialObject;
036: private Chart chartOfAccounts;
037: private transient Options universityFiscal;
038: private BenefitsCalculation benefitsCalculation;
039: private BenefitsType financialObjectBenefitsType;
040: private LaborObject laborObject;
041:
042: /**
043: * Default constructor.
044: */
045: public PositionObjectBenefit() {
046:
047: }
048:
049: /**
050: * Gets the universityFiscalYear
051: *
052: * @return Returns the universityFiscalYear
053: */
054: public Integer getUniversityFiscalYear() {
055: return universityFiscalYear;
056: }
057:
058: /**
059: * Sets the universityFiscalYear
060: *
061: * @param universityFiscalYear The universityFiscalYear to set.
062: */
063: public void setUniversityFiscalYear(Integer universityFiscalYear) {
064: this .universityFiscalYear = universityFiscalYear;
065: }
066:
067: /**
068: * Gets the chartOfAccountsCode
069: *
070: * @return Returns the chartOfAccountsCode
071: */
072: public String getChartOfAccountsCode() {
073: return chartOfAccountsCode;
074: }
075:
076: /**
077: * Sets the chartOfAccountsCode
078: *
079: * @param chartOfAccountsCode The chartOfAccountsCode to set.
080: */
081: public void setChartOfAccountsCode(String chartOfAccountsCode) {
082: this .chartOfAccountsCode = chartOfAccountsCode;
083: }
084:
085: /**
086: * Gets the financialObjectCode
087: *
088: * @return Returns the financialObjectCode
089: */
090: public String getFinancialObjectCode() {
091: return financialObjectCode;
092: }
093:
094: /**
095: * Sets the financialObjectCode
096: *
097: * @param financialObjectCode The financialObjectCode to set.
098: */
099: public void setFinancialObjectCode(String financialObjectCode) {
100: this .financialObjectCode = financialObjectCode;
101: }
102:
103: /**
104: * Gets the financialObjectBenefitsTypeCode
105: *
106: * @return Returns the financialObjectBenefitsTypeCode
107: */
108: public String getFinancialObjectBenefitsTypeCode() {
109: return financialObjectBenefitsTypeCode;
110: }
111:
112: /**
113: * Sets the financialObjectBenefitsTypeCode
114: *
115: * @param financialObjectBenefitsTypeCode The financialObjectBenefitsTypeCode to set.
116: */
117: public void setFinancialObjectBenefitsTypeCode(
118: String financialObjectBenefitsTypeCode) {
119: this .financialObjectBenefitsTypeCode = financialObjectBenefitsTypeCode;
120: }
121:
122: /**
123: * Gets the financialObject
124: *
125: * @return Returns the financialObject
126: */
127: public ObjectCode getFinancialObject() {
128: return financialObject;
129: }
130:
131: /**
132: * Sets the financialObject
133: *
134: * @param financialObject The financialObject to set.
135: */
136: @Deprecated
137: public void setFinancialObject(ObjectCode financialObject) {
138: this .financialObject = financialObject;
139: }
140:
141: /**
142: * Gets the chartOfAccounts
143: *
144: * @return Returns the chartOfAccounts
145: */
146: public Chart getChartOfAccounts() {
147: return chartOfAccounts;
148: }
149:
150: /**
151: * Sets the chartOfAccounts
152: *
153: * @param chartOfAccounts The chartOfAccounts to set.
154: */
155: @Deprecated
156: public void setChartOfAccounts(Chart chartOfAccounts) {
157: this .chartOfAccounts = chartOfAccounts;
158: }
159:
160: /**
161: * Gets the universityFiscal
162: *
163: * @return Returns the universityFiscal.
164: */
165: public Options getUniversityFiscal() {
166: return universityFiscal;
167: }
168:
169: /**
170: * Sets the universityFiscal
171: *
172: * @param universityFiscal The universityFiscal to set.
173: */
174: @Deprecated
175: public void setUniversityFiscal(Options universityFiscal) {
176: this .universityFiscal = universityFiscal;
177: }
178:
179: /**
180: * Gets the benefitsCalculation
181: *
182: * @return Returns the benefitsCalculation.
183: */
184: public BenefitsCalculation getBenefitsCalculation() {
185: return benefitsCalculation;
186: }
187:
188: /**
189: * Sets the benefitsCalculation
190: *
191: * @param benefitsCalculation The benefitsCalculation to set.
192: */
193: @Deprecated
194: public void setBenefitsCalculation(
195: BenefitsCalculation benefitsCalculation) {
196: this .benefitsCalculation = benefitsCalculation;
197: }
198:
199: /**
200: * Gets the financialObjectBenefitsType
201: *
202: * @return financialObjectBenefitsType
203: */
204: public BenefitsType getFinancialObjectBenefitsType() {
205: return financialObjectBenefitsType;
206: }
207:
208: /**
209: * Sets financialObjectBenefitsType
210: *
211: * @param financialObjectBenefitsType The financialObjectBenefitsType to be set
212: */
213: @Deprecated
214: public void setFinancialObjectBenefitsType(
215: BenefitsType financialObjectBenefitsType) {
216: this .financialObjectBenefitsType = financialObjectBenefitsType;
217: }
218:
219: /**
220: * Gets the laborObject
221: *
222: * @return Returns the laborObject.
223: */
224: public LaborObject getLaborObject() {
225: return laborObject;
226: }
227:
228: /**
229: * Sets the laborObject
230: *
231: * @param laborObject The laborObject to set.
232: */
233: @Deprecated
234: public void setLaborObject(LaborObject laborObject) {
235: this .laborObject = laborObject;
236: }
237:
238: /**
239: * construct the key list of the business object.
240: *
241: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
242: */
243: protected LinkedHashMap toStringMapper() {
244: LinkedHashMap m = new LinkedHashMap();
245: if (this .universityFiscalYear != null) {
246: m.put("universityFiscalYear", this .universityFiscalYear
247: .toString());
248: }
249: m.put("chartOfAccountsCode", this .chartOfAccountsCode);
250: m.put("financialObjectCode", this .financialObjectCode);
251: m.put("financialObjectBenefitsTypeCode",
252: this.financialObjectBenefitsTypeCode);
253:
254: return m;
255: }
256: }
|