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 SubAccount extends PersistableBusinessObjectBase {
027:
028: private static final long serialVersionUID = 6853259976912014273L;
029:
030: private String chartOfAccountsCode;
031: private String accountNumber;
032: private String subAccountNumber;
033: private String subAccountName;
034: private boolean subAccountActiveIndicator;
035: private String financialReportChartCode;
036: private String finReportOrganizationCode;
037: private String financialReportingCode;
038:
039: private A21SubAccount a21SubAccount;
040: private Account account;
041: private ReportingCodes reportingCode;
042: private Chart chart;
043: private Org org;
044: private Chart financialReportChart;
045:
046: // Several kinds of Dummy Attributes for dividing sections on Inquiry page
047: private String financialReportingCodeSectionBlank;
048: private String financialReportingCodeSection;
049: private String cgCostSharingSectionBlank;
050: private String cgCostSharingSection;
051: private String cgICRSectionBlank;
052: private String cgICRSection;
053:
054: /**
055: * Default no-arg constructor.
056: */
057: public SubAccount() {
058: }
059:
060: /**
061: * Gets the accountNumber attribute.
062: *
063: * @return Returns the accountNumber.
064: */
065: public String getAccountNumber() {
066: return accountNumber;
067: }
068:
069: /**
070: * Sets the accountNumber attribute value.
071: */
072: public void setAccountNumber(String accountNumber) {
073: this .accountNumber = accountNumber;
074: }
075:
076: /**
077: * Gets the chartOfAccountsCode attribute.
078: *
079: * @return Returns the chartOfAccountsCode.
080: */
081: public String getChartOfAccountsCode() {
082: return chartOfAccountsCode;
083: }
084:
085: /**
086: * Sets the chartOfAccountsCode attribute value.
087: *
088: * @param chartOfAccountsCode The chartOfAccountsCode to set.
089: */
090: public void setChartOfAccountsCode(String chartOfAccountsCode) {
091: this .chartOfAccountsCode = chartOfAccountsCode;
092: }
093:
094: /**
095: * Sets the financialReporting attribute value.
096: *
097: * @param reportingCode The financialReporting to set.
098: * @deprecated
099: */
100: public void setReportingCode(ReportingCodes reportingCode) {
101: this .reportingCode = reportingCode;
102: }
103:
104: /**
105: * Gets the subAccountName attribute.
106: *
107: * @return Returns the subAccountName
108: */
109: public String getSubAccountName() {
110: return subAccountName;
111: }
112:
113: /**
114: * Sets the subAccountName attribute.
115: *
116: * @param subAccountName The subAccountName to set.
117: */
118: public void setSubAccountName(String subAccountName) {
119: this .subAccountName = subAccountName;
120: }
121:
122: /**
123: * Gets the subAccountActiveIndicator attribute.
124: *
125: * @return Returns the subAccountActiveIndicator
126: */
127: public boolean isSubAccountActiveIndicator() {
128: return subAccountActiveIndicator;
129: }
130:
131: /**
132: * Sets the subAccountActiveIndicator attribute.
133: *
134: * @param subAccountActiveIndicator The subAccountActiveIndicator to set.
135: */
136: public void setSubAccountActiveIndicator(
137: boolean subAccountActiveIndicator) {
138: this .subAccountActiveIndicator = subAccountActiveIndicator;
139: }
140:
141: /**
142: * Gets the account attribute.
143: *
144: * @return Returns the account
145: */
146: public Account getAccount() {
147: return account;
148: }
149:
150: /**
151: * Sets the account attribute.
152: *
153: * @param account The account to set.
154: */
155: public void setAccount(Account account) {
156: this .account = account;
157: }
158:
159: /**
160: * Gets the subAccount attribute.
161: *
162: * @return Returns the subAccount
163: */
164: public String getSubAccountNumber() {
165: return subAccountNumber;
166: }
167:
168: /**
169: * Sets the subAccount attribute.
170: *
171: * @param subAccount The subAccount to set.
172: */
173: public void setSubAccountNumber(String subAccountNumber) {
174: this .subAccountNumber = subAccountNumber;
175: }
176:
177: /**
178: * Gets the financialReporting attribute.
179: *
180: * @return Returns the financialReporting
181: */
182: public ReportingCodes getReportingCode() {
183: return reportingCode;
184: }
185:
186: /**
187: * @return Returns the financialReportChartCode.
188: */
189: public String getFinancialReportChartCode() {
190: return financialReportChartCode;
191: }
192:
193: /**
194: * @param financialReportChartCode The financialReportChartCode to set.
195: */
196: public void setFinancialReportChartCode(
197: String financialReportChartCode) {
198: this .financialReportChartCode = financialReportChartCode;
199: }
200:
201: /**
202: * @return Returns the financialReportingCode.
203: */
204: public String getFinancialReportingCode() {
205: return financialReportingCode;
206: }
207:
208: /**
209: * @param financialReportingCode The financialReportingCode to set.
210: */
211: public void setFinancialReportingCode(String financialReportingCode) {
212: this .financialReportingCode = financialReportingCode;
213: }
214:
215: /**
216: * @return Returns the finReportOrganizationCode.
217: */
218: public String getFinReportOrganizationCode() {
219: return finReportOrganizationCode;
220: }
221:
222: /**
223: * @param finReportOrganizationCode The finReportOrganizationCode to set.
224: */
225: public void setFinReportOrganizationCode(
226: String finReportOrganizationCode) {
227: this .finReportOrganizationCode = finReportOrganizationCode;
228: }
229:
230: /**
231: * Gets the a21SubAccount attribute.
232: *
233: * @return Returns the a21SubAccount.
234: */
235: public A21SubAccount getA21SubAccount() {
236: return a21SubAccount;
237: }
238:
239: /**
240: * Sets the a21SubAccount attribute value.
241: *
242: * @param subAccount The a21SubAccount to set.
243: */
244: public void setA21SubAccount(A21SubAccount subAccount) {
245: a21SubAccount = subAccount;
246: }
247:
248: /**
249: * @return Returns the chart.
250: */
251: public Chart getChart() {
252: return chart;
253: }
254:
255: /**
256: * @param chart The chart to set.
257: * @deprecated
258: */
259: public void setChart(Chart chart) {
260: this .chart = chart;
261: }
262:
263: /**
264: * @return Returns the financialReportChart.
265: */
266: public Chart getFinancialReportChart() {
267: return financialReportChart;
268: }
269:
270: /**
271: * @param financialReportChart The financialReportChart to set.
272: * @deprecated
273: */
274: public void setFinancialReportChart(Chart financialReportChart) {
275: this .financialReportChart = financialReportChart;
276: }
277:
278: /**
279: * @return Returns the org.
280: */
281: public Org getOrg() {
282: return org;
283: }
284:
285: /**
286: * @param org The org to set.
287: * @deprecated
288: */
289: public void setOrg(Org org) {
290: this .org = org;
291: }
292:
293: /**
294: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
295: */
296: protected LinkedHashMap toStringMapper() {
297: LinkedHashMap m = new LinkedHashMap();
298: m.put("chartCode", this .chartOfAccountsCode);
299: m.put("account", this .accountNumber);
300: m.put("subAccountNumber", this .subAccountNumber);
301: return m;
302: }
303:
304: /**
305: * Gets the cGCostSharingSectionBlank attribute.
306: *
307: * @return Returns the cGCostSharingSectionBlank.
308: */
309: public String getCgCostSharingSectionBlank() {
310: return cgCostSharingSectionBlank;
311: }
312:
313: /**
314: * Gets the cGICRSectionBlank attribute.
315: *
316: * @return Returns the cGICRSectionBlank.
317: */
318: public String getCgICRSectionBlank() {
319: return cgICRSectionBlank;
320: }
321:
322: /**
323: * Gets the financialReportingCodeSectionBlank attribute.
324: *
325: * @return Returns the financialReportingCodeSectionBlank.
326: */
327: public String getFinancialReportingCodeSectionBlank() {
328: return financialReportingCodeSectionBlank;
329: }
330:
331: /**
332: * Gets the cGCostSharingSection attribute.
333: *
334: * @return Returns the cGCostSharingSection.
335: */
336: public String getCgCostSharingSection() {
337: return cgCostSharingSection;
338: }
339:
340: /**
341: * Gets the cGICRSection attribute.
342: *
343: * @return Returns the cGICRSection.
344: */
345: public String getCgICRSection() {
346: return cgICRSection;
347: }
348:
349: /**
350: * Gets the financialReportingCodeSection attribute.
351: *
352: * @return Returns the financialReportingCodeSection.
353: */
354: public String getFinancialReportingCodeSection() {
355: return financialReportingCodeSection;
356: }
357: }
|