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.core.util.KualiPercent;
023: import org.kuali.kfs.bo.Options;
024: import org.kuali.module.chart.bo.Chart;
025: import org.kuali.module.chart.bo.ObjectCode;
026:
027: /**
028: * Labor business object for Benefits Calculation.
029: */
030: public class BenefitsCalculation extends PersistableBusinessObjectBase {
031:
032: private Integer universityFiscalYear;
033: private String chartOfAccountsCode;
034: private String positionBenefitTypeCode;
035: private KualiPercent positionFringeBenefitPercent;
036: private String positionFringeBenefitObjectCode;
037: private ObjectCode positionFringeBenefitObject;
038: private Chart chartOfAccounts;
039: private BenefitsType positionBenefitType;
040: private transient Options universityFiscal;
041:
042: /**
043: * Default constructor.
044: */
045: public BenefitsCalculation() {
046:
047: }
048:
049: /**
050: * Gets the universityFiscalYear attribute.
051: *
052: * @return Returns the universityFiscalYear
053: */
054: public Integer getUniversityFiscalYear() {
055: return universityFiscalYear;
056: }
057:
058: /**
059: * Sets the universityFiscalYear attribute.
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 attribute.
069: *
070: * @return Returns the chartOfAccountsCode
071: */
072: public String getChartOfAccountsCode() {
073: return chartOfAccountsCode;
074: }
075:
076: /**
077: * Sets the chartOfAccountsCode attribute.
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 positionBenefitTypeCode attribute.
087: *
088: * @return Returns the positionBenefitTypeCode
089: */
090: public String getPositionBenefitTypeCode() {
091: return positionBenefitTypeCode;
092: }
093:
094: /**
095: * Sets the positionBenefitTypeCode attribute.
096: *
097: * @param positionBenefitTypeCode The positionBenefitTypeCode to set.
098: */
099: public void setPositionBenefitTypeCode(
100: String positionBenefitTypeCode) {
101: this .positionBenefitTypeCode = positionBenefitTypeCode;
102: }
103:
104: /**
105: * Gets the positionFringeBenefitPercent attribute.
106: *
107: * @return Returns the positionFringeBenefitPercent
108: */
109: public KualiPercent getPositionFringeBenefitPercent() {
110: return positionFringeBenefitPercent;
111: }
112:
113: /**
114: * Sets the positionFringeBenefitPercent attribute.
115: *
116: * @param positionFringeBenefitPercent The positionFringeBenefitPercent to set.
117: */
118: public void setPositionFringeBenefitPercent(
119: KualiPercent positionFringeBenefitPercent) {
120: this .positionFringeBenefitPercent = positionFringeBenefitPercent;
121: }
122:
123: /**
124: * Gets the positionFringeBenefitObjectCode attribute.
125: *
126: * @return Returns the positionFringeBenefitObjectCode
127: */
128: public String getPositionFringeBenefitObjectCode() {
129: return positionFringeBenefitObjectCode;
130: }
131:
132: /**
133: * Sets the positionFringeBenefitObjectCode attribute.
134: *
135: * @param positionFringeBenefitObjectCode The positionFringeBenefitObjectCode to set.
136: */
137: public void setPositionFringeBenefitObjectCode(
138: String positionFringeBenefitObjectCode) {
139: this .positionFringeBenefitObjectCode = positionFringeBenefitObjectCode;
140: }
141:
142: /**
143: * Gets the positionFringeBenefitObject attribute.
144: *
145: * @return Returns the positionFringeBenefitObject
146: */
147: public ObjectCode getPositionFringeBenefitObject() {
148: return positionFringeBenefitObject;
149: }
150:
151: /**
152: * Sets the positionFringeBenefitObject attribute.
153: *
154: * @param positionFringeBenefitObject The positionFringeBenefitObject to set.
155: */
156: @Deprecated
157: public void setPositionFringeBenefitObject(
158: ObjectCode positionFringeBenefitObject) {
159: this .positionFringeBenefitObject = positionFringeBenefitObject;
160: }
161:
162: /**
163: * Gets the chartOfAccounts attribute.
164: *
165: * @return Returns the chartOfAccounts
166: */
167: public Chart getChartOfAccounts() {
168: return chartOfAccounts;
169: }
170:
171: /**
172: * Sets the chartOfAccounts attribute.
173: *
174: * @param chartOfAccounts The chartOfAccounts to set.
175: */
176: @Deprecated
177: public void setChartOfAccounts(Chart chartOfAccounts) {
178: this .chartOfAccounts = chartOfAccounts;
179: }
180:
181: /**
182: * Gets the positionBenefitType attribute.
183: *
184: * @return Returns the positionBenefitType.
185: */
186: public BenefitsType getPositionBenefitType() {
187: return positionBenefitType;
188: }
189:
190: /**
191: * Sets the positionBenefitType attribute value.
192: *
193: * @param positionBenefitType The positionBenefitType to set.
194: */
195: @Deprecated
196: public void setPositionBenefitType(BenefitsType positionBenefitType) {
197: this .positionBenefitType = positionBenefitType;
198: }
199:
200: /**
201: * Gets the universityFiscal attribute.
202: *
203: * @return Returns the universityFiscal.
204: */
205: public Options getUniversityFiscal() {
206: return universityFiscal;
207: }
208:
209: /**
210: * Sets the universityFiscal attribute value.
211: *
212: * @param universityFiscal The universityFiscal to set.
213: */
214: public void setUniversityFiscal(Options universityFiscal) {
215: this .universityFiscal = universityFiscal;
216: }
217:
218: /**
219: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
220: */
221: protected LinkedHashMap toStringMapper() {
222: LinkedHashMap m = new LinkedHashMap();
223: if (this .universityFiscalYear != null) {
224: m.put("universityFiscalYear", this .universityFiscalYear
225: .toString());
226: }
227: m.put("chartOfAccountsCode", this .chartOfAccountsCode);
228: m.put("positionBenefitTypeCode", this.positionBenefitTypeCode);
229:
230: return m;
231: }
232: }
|