001: /*
002: * Copyright 2005-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.chart.bo;
018:
019: import java.util.LinkedHashMap;
020:
021: import org.kuali.core.bo.PersistableBusinessObjectBase;
022:
023: /**
024: *
025: */
026: public class SubFundGroup extends PersistableBusinessObjectBase {
027:
028: /**
029: * Default no-arg constructor.
030: */
031: public SubFundGroup() {
032:
033: }
034:
035: private static final long serialVersionUID = 3304324942061886270L;
036:
037: private String subFundGroupCode;
038: private String subFundGroupDescription;
039: private boolean subfundgrpActivityIndicator;
040: private String subFundGroupTypeCode;
041: private String financialReportingSortCode;
042: private boolean subFundGroupWagesIndicator;
043: private String fundGroupCode;
044: private String fundGroupBudgetAdjustmentRestrictionLevelCode;
045: private String accountRestrictedStatusCode;
046:
047: private FundGroup fundGroup;
048: private SubFundGroupType subFundGroupType;
049: private RestrictedStatus accountRestrictedStatus;
050:
051: /**
052: * Gets the subFundGroupCode attribute.
053: *
054: * @return Returns the subFundGroupCode
055: */
056: public String getSubFundGroupCode() {
057: return subFundGroupCode;
058: }
059:
060: /**
061: * Sets the subFundGroupCode attribute.
062: *
063: * @param subFundGroupCode The subFundGroupCode to set.
064: */
065: public void setSubFundGroupCode(String subFundGroupCode) {
066: this .subFundGroupCode = subFundGroupCode;
067: }
068:
069: /**
070: * Gets the subFundGroupDescription attribute.
071: *
072: * @return Returns the subFundGroupDescription
073: */
074: public String getSubFundGroupDescription() {
075: return subFundGroupDescription;
076: }
077:
078: /**
079: * Sets the subFundGroupDescription attribute.
080: *
081: * @param subFundGroupDescription The subFundGroupDescription to set.
082: */
083: public void setSubFundGroupDescription(
084: String subFundGroupDescription) {
085: this .subFundGroupDescription = subFundGroupDescription;
086: }
087:
088: /**
089: * Gets the _SubfundgrpActivityIndicator_ attribute.
090: *
091: * @return Returns the _SubfundgrpActivityIndicator_
092: */
093: public boolean getSubfundgrpActivityIndicator() {
094: return subfundgrpActivityIndicator;
095: }
096:
097: /**
098: * Sets the _SubfundgrpActivityIndicator_ attribute.
099: *
100: * @param _SubfundgrpActivityIndicator_ The _SubfundgrpActivityIndicator_ to set.
101: */
102: public void setSubfundgrpActivityIndicator(
103: boolean _SubfundgrpActivityIndicator_) {
104: this .subfundgrpActivityIndicator = _SubfundgrpActivityIndicator_;
105: }
106:
107: /**
108: * Gets the subFundGroupTypeCode attribute.
109: *
110: * @return Returns the subFundGroupTypeCode
111: */
112: public String getSubFundGroupTypeCode() {
113: return subFundGroupTypeCode;
114: }
115:
116: /**
117: * Sets the subFundGroupTypeCode attribute.
118: *
119: * @param subFundGroupTypeCode The subFundGroupTypeCode to set.
120: */
121: public void setSubFundGroupTypeCode(String subFundGroupTypeCode) {
122: this .subFundGroupTypeCode = subFundGroupTypeCode;
123: }
124:
125: /**
126: * Gets the financialReportingSortCode attribute.
127: *
128: * @return Returns the financialReportingSortCode
129: */
130: public String getFinancialReportingSortCode() {
131: return financialReportingSortCode;
132: }
133:
134: /**
135: * Sets the financialReportingSortCode attribute.
136: *
137: * @param financialReportingSortCode The financialReportingSortCode to set.
138: */
139: public void setFinancialReportingSortCode(
140: String financialReportingSortCode) {
141: this .financialReportingSortCode = financialReportingSortCode;
142: }
143:
144: /**
145: * Gets the subFundGroupWagesIndicator attribute.
146: *
147: * @return Returns the subFundGroupWagesIndicator
148: */
149: public boolean isSubFundGroupWagesIndicator() {
150: return subFundGroupWagesIndicator;
151: }
152:
153: /**
154: * Sets the subFundGroupWagesIndicator attribute.
155: *
156: * @param subFundGroupWagesIndicator The subFundGroupWagesIndicator to set.
157: */
158: public void setSubFundGroupWagesIndicator(
159: boolean subFundGroupWagesIndicator) {
160: this .subFundGroupWagesIndicator = subFundGroupWagesIndicator;
161: }
162:
163: /**
164: * @return Returns the fundGroup.
165: */
166: public FundGroup getFundGroup() {
167: return fundGroup;
168: }
169:
170: /**
171: * @param fundGroup The fundGroup to set.
172: */
173: public void setFundGroup(FundGroup fundGroup) {
174: this .fundGroup = fundGroup;
175: }
176:
177: /**
178: * @return Returns the fundGroupCode.
179: */
180: public String getFundGroupCode() {
181: return fundGroupCode;
182: }
183:
184: /**
185: * @param fundGroupCode The fundGroupCode to set.
186: */
187: public void setFundGroupCode(String fundGroupCode) {
188: this .fundGroupCode = fundGroupCode;
189: }
190:
191: /**
192: * Gets the fundGroupBudgetAdjustmentRestrictionLevelCode attribute.
193: *
194: * @return Returns the fundGroupBudgetAdjustmentRestrictionLevelCode.
195: */
196: public String getFundGroupBudgetAdjustmentRestrictionLevelCode() {
197: return fundGroupBudgetAdjustmentRestrictionLevelCode;
198: }
199:
200: /**
201: * Sets the fundGroupBudgetAdjustmentRestrictionLevelCode attribute value.
202: *
203: * @param fundGroupBudgetAdjustmentRestrictionLevelCode The fundGroupBudgetAdjustmentRestrictionLevelCode to set.
204: */
205: public void setFundGroupBudgetAdjustmentRestrictionLevelCode(
206: String fundGroupBudgetAdjustmentRestrictionLevelCode) {
207: this .fundGroupBudgetAdjustmentRestrictionLevelCode = fundGroupBudgetAdjustmentRestrictionLevelCode;
208: }
209:
210: /**
211: * Gets the accountRestrictedStatusCode attribute.
212: *
213: * @return Returns the accountRestrictedStatusCode.
214: */
215: public String getAccountRestrictedStatusCode() {
216: return accountRestrictedStatusCode;
217: }
218:
219: /**
220: * Sets the accountRestrictedStatusCode attribute value.
221: *
222: * @param accountRestrictedStatusCode The accountRestrictedStatusCode to set.
223: */
224: public void setAccountRestrictedStatusCode(
225: String accountRestrictedStatusCode) {
226: this .accountRestrictedStatusCode = accountRestrictedStatusCode;
227: }
228:
229: /**
230: * Gets the subFundGroupType attribute.
231: *
232: * @return Returns the subFundGroupType.
233: */
234: public SubFundGroupType getSubFundGroupType() {
235: return subFundGroupType;
236: }
237:
238: /**
239: * Sets the subFundGroupType attribute value.
240: *
241: * @param subFundGroupType The subFundGroupType to set.
242: * @deprecated
243: */
244: public void setSubFundGroupType(SubFundGroupType subFundGroupType) {
245: this .subFundGroupType = subFundGroupType;
246: }
247:
248: /**
249: * Gets the accountRestrictedStatus attribute.
250: *
251: * @return Returns the accountRestrictedStatus.
252: */
253: public RestrictedStatus getAccountRestrictedStatus() {
254: return accountRestrictedStatus;
255: }
256:
257: /**
258: * Sets the accountRestrictedStatus attribute value.
259: *
260: * @param accountRestrictedStatus The accountRestrictedStatus to set.
261: */
262: public void setAccountRestrictedStatus(
263: RestrictedStatus accountRestrictedStatus) {
264: this .accountRestrictedStatus = accountRestrictedStatus;
265: }
266:
267: /**
268: * @return Returns the code and description in format: xx - xxxxxxxxxxxxxxxx
269: */
270: public String getCodeAndDescription() {
271: String theString = getSubFundGroupCode() + " - "
272: + getSubFundGroupDescription();
273: return theString;
274: }
275:
276: /**
277: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
278: */
279: protected LinkedHashMap toStringMapper() {
280: LinkedHashMap m = new LinkedHashMap();
281:
282: m.put("subFundGroupCode", this.subFundGroupCode);
283:
284: return m;
285: }
286:
287: }
|