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: package org.kuali.module.chart.bo;
017:
018: import java.util.LinkedHashMap;
019:
020: import org.kuali.core.bo.PersistableBusinessObjectBase;
021: import org.kuali.core.service.impl.PersistenceStructureServiceImpl;
022: import org.kuali.kfs.bo.Options;
023:
024: /**
025: *
026: */
027: public class SubObjCd extends PersistableBusinessObjectBase {
028:
029: private static final long serialVersionUID = -5292158248714650271L;
030:
031: static {
032: PersistenceStructureServiceImpl.referenceConversionMap.put(
033: SubObjCd.class, SubObjCdCurrent.class);
034: }
035:
036: /**
037: * Default no-arg constructor.
038: */
039: public SubObjCd() {
040:
041: }
042:
043: /**
044: * Constructs an active SubObjCd.java with the given primary key.
045: *
046: * @param universityFiscalYear
047: * @param chartOfAccountsCode
048: * @param accountNumber
049: * @param financialObjectCode
050: * @param financialSubObjectCode
051: */
052: public SubObjCd(Integer universityFiscalYear,
053: String chartOfAccountsCode, String accountNumber,
054: String financialObjectCode, String financialSubObjectCode) {
055: this .universityFiscalYear = universityFiscalYear;
056: this .chartOfAccountsCode = chartOfAccountsCode;
057: this .accountNumber = accountNumber;
058: this .financialObjectCode = financialObjectCode;
059: this .financialSubObjectCode = financialSubObjectCode;
060: this .financialSubObjectActiveIndicator = true;
061: }
062:
063: private String chartOfAccountsCode;
064: private String accountNumber;
065: private String financialObjectCode;
066: private String financialSubObjectCode;
067: private String financialSubObjectCodeName;
068: private String financialSubObjectCdshortNm;
069: private boolean financialSubObjectActiveIndicator;
070: private Integer universityFiscalYear;
071:
072: private Chart chartOfAccounts;
073: private Account account;
074: private ObjectCode financialObject;
075: private Options universityFiscal;
076:
077: public String getFinancialSubObjectCode() {
078: return financialSubObjectCode;
079: }
080:
081: public void setFinancialSubObjectCode(String financialSubObjectCode) {
082: this .financialSubObjectCode = financialSubObjectCode;
083: }
084:
085: /**
086: * Gets the financialObjectCode attribute.
087: *
088: * @return Returns the financialObjectCode
089: */
090: public String getFinancialObjectCode() {
091: return financialObjectCode;
092: }
093:
094: /**
095: * Sets the financialObjectCode attribute.
096: *
097: * @param financialObjectCode The financialObjectCode to set.
098: */
099: public void setFinancialObjectCode(String financialObjectCode) {
100: this .financialObjectCode = financialObjectCode;
101: }
102:
103: public ObjectCode getFinancialObject() {
104: return financialObject;
105: }
106:
107: /**
108: * @deprecated
109: */
110: public void setFinancialObject(ObjectCode financialObject) {
111: this .financialObject = financialObject;
112: }
113:
114: /**
115: * Gets the financialSubObjectCodeName attribute.
116: *
117: * @return Returns the financialSubObjectCodeName
118: */
119: public String getFinancialSubObjectCodeName() {
120: return financialSubObjectCodeName;
121: }
122:
123: /**
124: * Sets the financialSubObjectCodeName attribute.
125: *
126: * @param financialSubObjectCodeName The financialSubObjectCodeName to set.
127: */
128: public void setFinancialSubObjectCodeName(
129: String financialSubObjectCodeName) {
130: this .financialSubObjectCodeName = financialSubObjectCodeName;
131: }
132:
133: /**
134: * Gets the financialSubObjectCdshortNm attribute.
135: *
136: * @return Returns the financialSubObjectCdshortNm
137: */
138: public String getFinancialSubObjectCdshortNm() {
139: return financialSubObjectCdshortNm;
140: }
141:
142: /**
143: * Sets the financialSubObjectCdshortNm attribute.
144: *
145: * @param financialSubObjectCdshortNm The financialSubObjectCdshortNm to set.
146: */
147: public void setFinancialSubObjectCdshortNm(
148: String financialSubObjectCdshortNm) {
149: this .financialSubObjectCdshortNm = financialSubObjectCdshortNm;
150: }
151:
152: /**
153: * Gets the financialSubObjectActiveIndicator attribute.
154: *
155: * @return Returns the financialSubObjectActiveIndicator
156: */
157: public boolean isFinancialSubObjectActiveIndicator() {
158: return financialSubObjectActiveIndicator;
159: }
160:
161: /**
162: * Sets the financialSubObjectActiveIndicator attribute.
163: *
164: * @param financialSubObjectActiveIndicator The financialSubObjectActiveIndicator to set.
165: */
166: public void setFinancialSubObjectActiveIndicator(
167: boolean financialSubObjectActiveIndicator) {
168: this .financialSubObjectActiveIndicator = financialSubObjectActiveIndicator;
169: }
170:
171: /**
172: * Gets the universityFiscal attribute.
173: *
174: * @return Returns the universityFiscal
175: */
176: public Options getUniversityFiscal() {
177: return universityFiscal;
178: }
179:
180: /**
181: * Sets the universityFiscal attribute.
182: *
183: * @param universityFiscal The universityFiscal to set.
184: * @deprecated
185: */
186: public void setUniversityFiscal(Options universityFiscal) {
187: this .universityFiscal = universityFiscal;
188: }
189:
190: /**
191: * Gets the chartOfAccounts attribute.
192: *
193: * @return Returns the chartOfAccounts
194: */
195: public Chart getChartOfAccounts() {
196: return chartOfAccounts;
197: }
198:
199: /**
200: * Sets the chartOfAccounts attribute.
201: *
202: * @param chartOfAccounts The chartOfAccounts to set.
203: * @deprecated
204: */
205: public void setChartOfAccounts(Chart chartOfAccounts) {
206: this .chartOfAccounts = chartOfAccounts;
207: }
208:
209: /**
210: * Gets the account attribute.
211: *
212: * @return Returns the account
213: */
214: public Account getAccount() {
215: return account;
216: }
217:
218: /**
219: * Sets the account attribute.
220: *
221: * @param account The account to set.
222: * @deprecated
223: */
224: public void setAccount(Account account) {
225: this .account = account;
226: }
227:
228: public String getAccountNumber() {
229: return accountNumber;
230: }
231:
232: public void setAccountNumber(String accountNumber) {
233: this .accountNumber = accountNumber;
234: }
235:
236: public String getChartOfAccountsCode() {
237: return chartOfAccountsCode;
238: }
239:
240: public void setChartOfAccountsCode(String chartOfAccountsCode) {
241: this .chartOfAccountsCode = chartOfAccountsCode;
242: }
243:
244: public Integer getUniversityFiscalYear() {
245: return universityFiscalYear;
246: }
247:
248: public void setUniversityFiscalYear(Integer universityFiscalYear) {
249: this .universityFiscalYear = universityFiscalYear;
250: }
251:
252: /**
253: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
254: */
255: protected LinkedHashMap toStringMapper() {
256: LinkedHashMap m = new LinkedHashMap();
257:
258: m.put("universityFiscalYear", this .universityFiscalYear);
259: m.put("chartOfAccountsCode", this .chartOfAccountsCode);
260: m.put("accountNumber", this .accountNumber);
261: m.put("financialObjectCode", this .financialObjectCode);
262: m.put("financialSubObjectCode", this.financialSubObjectCode);
263:
264: return m;
265: }
266:
267: }
|