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.financial.bo;
017:
018: import java.util.LinkedHashMap;
019:
020: import org.kuali.core.bo.PersistableBusinessObjectBase;
021: import org.kuali.module.chart.bo.Account;
022: import org.kuali.module.chart.bo.Chart;
023: import org.kuali.module.chart.bo.ObjectCode;
024: import org.kuali.module.chart.bo.SubAccount;
025: import org.kuali.module.chart.bo.SubObjCd;
026:
027: /**
028: * This class represents a bank account
029: */
030: public class BankAccount extends PersistableBusinessObjectBase {
031: private String finDocumentBankAccountDesc;
032: private String finDocumentBankAccountNumber;
033: private String financialDocumentBankCode;
034: private String cashOffsetFinancialChartOfAccountCode;
035: private String cashOffsetAccountNumber;
036: private String cashOffsetSubAccountNumber;
037: private String cashOffsetObjectCode;
038: private String cashOffsetSubObjectCode;
039:
040: private Bank bank;
041: private Chart cashOffsetFinancialChartOfAccount;
042: private Account cashOffsetAccount;
043: private ObjectCode cashOffsetObject;
044: private SubAccount cashOffsetSubAccount;
045: private SubObjCd cashOffsetSubObject;
046:
047: /**
048: * Default no-arg constructor.
049: */
050: public BankAccount() {
051:
052: }
053:
054: /**
055: * Gets the bank attribute.
056: *
057: * @return Returns the financialDocumentBankCode
058: */
059: public Bank getBank() {
060: return bank;
061: }
062:
063: /**
064: * Sets the bank attribute.
065: *
066: * @param bank The bank to set.
067: * @deprecated
068: */
069: public void setBank(Bank bank) {
070: this .bank = bank;
071: }
072:
073: /**
074: * Gets the financialDocumentBankCode attribute.
075: *
076: * @return Returns the financialDocumentBankCode
077: */
078: public String getFinancialDocumentBankCode() {
079: return financialDocumentBankCode;
080: }
081:
082: /**
083: * Sets the financialDocumentBankCode attribute.
084: *
085: * @param financialDocumentBankCode The financialDocumentBankCode to set.
086: */
087: public void setFinancialDocumentBankCode(
088: String financialDocumentBankCode) {
089: this .financialDocumentBankCode = financialDocumentBankCode;
090: }
091:
092: /**
093: * Gets the finDocumentBankAccountDesc attribute.
094: *
095: * @return Returns the finDocumentBankAccountDesc
096: */
097: public String getFinDocumentBankAccountDesc() {
098: return finDocumentBankAccountDesc;
099: }
100:
101: /**
102: * Sets the finDocumentBankAccountDesc attribute.
103: *
104: * @param finDocumentBankAccountDesc The finDocumentBankAccountDesc to set.
105: */
106: public void setFinDocumentBankAccountDesc(
107: String finDocumentBankAccountDesc) {
108: this .finDocumentBankAccountDesc = finDocumentBankAccountDesc;
109: }
110:
111: /**
112: * Gets the finDocumentBankAccount attribute.
113: *
114: * @return Returns the finDocumentBankAccountNumber
115: */
116: public String getFinDocumentBankAccountNumber() {
117: return finDocumentBankAccountNumber;
118: }
119:
120: /**
121: * Sets the finDocumentBankAccountNumber attribute.
122: *
123: * @param finDocumentBankAccountNumber The finDocumentBankAccountNumber to set.
124: */
125: public void setFinDocumentBankAccountNumber(
126: String finDocumentBankAccountNumber) {
127: this .finDocumentBankAccountNumber = finDocumentBankAccountNumber;
128: }
129:
130: /**
131: * @return Returns the cashOffsetAccountNumber.
132: */
133: public String getCashOffsetAccountNumber() {
134: return cashOffsetAccountNumber;
135: }
136:
137: /**
138: * @param cashOffsetAccountNumber The cashOffsetAccountNumber to set.
139: */
140: public void setCashOffsetAccountNumber(
141: String cashOffsetAccountNumber) {
142: this .cashOffsetAccountNumber = cashOffsetAccountNumber;
143: }
144:
145: /**
146: * @return Returns the cashOffsetFinancialChartOfAccountCode.
147: */
148: public String getCashOffsetFinancialChartOfAccountCode() {
149: return cashOffsetFinancialChartOfAccountCode;
150: }
151:
152: /**
153: * @param cashOffsetFinancialChartOfAccountCode The cashOffsetFinancialChartOfAccountCode to set.
154: */
155: public void setCashOffsetFinancialChartOfAccountCode(
156: String cashOffsetFinancialChartOfAccountCode) {
157: this .cashOffsetFinancialChartOfAccountCode = cashOffsetFinancialChartOfAccountCode;
158: }
159:
160: /**
161: * @return Returns the cashOffsetObjectCode.
162: */
163: public String getCashOffsetObjectCode() {
164: return cashOffsetObjectCode;
165: }
166:
167: /**
168: * @param cashOffsetObjectCode The cashOffsetObjectCode to set.
169: */
170: public void setCashOffsetObjectCode(String cashOffsetObjectCode) {
171: this .cashOffsetObjectCode = cashOffsetObjectCode;
172: }
173:
174: /**
175: * @return Returns the cashOffsetSubObjectCode.
176: */
177: public String getCashOffsetSubObjectCode() {
178: return cashOffsetSubObjectCode;
179: }
180:
181: /**
182: * @param cashOffsetSubObjectCode The cashOffsetSubObjectCode to set.
183: */
184: public void setCashOffsetSubObjectCode(
185: String cashOffsetSubObjectCode) {
186: this .cashOffsetSubObjectCode = cashOffsetSubObjectCode;
187: }
188:
189: /**
190: * Gets the cashOffsetAccount attribute.
191: *
192: * @return Returns the cashOffsetAccount
193: */
194: public Account getCashOffsetAccount() {
195: return cashOffsetAccount;
196: }
197:
198: /**
199: * Sets the cashOffsetAccount attribute.
200: *
201: * @param cashOffsetAccount The cashOffsetAccount to set.
202: * @deprecated
203: */
204: public void setCashOffsetAccount(Account cashOffsetAccount) {
205: this .cashOffsetAccount = cashOffsetAccount;
206: }
207:
208: /**
209: * Gets the cashOffsetFinancialChartOfAccount attribute.
210: *
211: * @return Returns the cashOffsetFinancialChartOfAccount
212: */
213: public Chart getCashOffsetFinancialChartOfAccount() {
214: return cashOffsetFinancialChartOfAccount;
215: }
216:
217: /**
218: * Sets the cashOffsetFinancialChartOfAccount attribute.
219: *
220: * @param cashOffsetFinancialChartOfAccount The cashOffsetFinancialChartOfAccount to set.
221: * @deprecated
222: */
223: public void setCashOffsetFinancialChartOfAccount(
224: Chart cashOffsetFinancialChartOfAccount) {
225: this .cashOffsetFinancialChartOfAccount = cashOffsetFinancialChartOfAccount;
226: }
227:
228: /**
229: * Gets the cashOffsetObject attribute.
230: *
231: * @return Returns the cashOffsetObject.
232: */
233: public ObjectCode getCashOffsetObject() {
234: return cashOffsetObject;
235: }
236:
237: /**
238: * Sets the cashOffsetObject attribute value.
239: *
240: * @param cashOffsetObject The cashOffsetObject to set.
241: * @deprecated
242: */
243: public void setCashOffsetObject(ObjectCode cashOffsetObject) {
244: this .cashOffsetObject = cashOffsetObject;
245: }
246:
247: /**
248: * Gets the cashOffsetSubAccountNumber attribute.
249: *
250: * @return Returns the cashOffsetSubAccountNumber.
251: */
252: public String getCashOffsetSubAccountNumber() {
253: return cashOffsetSubAccountNumber;
254: }
255:
256: /**
257: * Sets the cashOffsetSubAccountNumber attribute value.
258: *
259: * @param cashOffsetSubAccountNumber The cashOffsetSubAccountNumber to set.
260: */
261: public void setCashOffsetSubAccountNumber(
262: String cashOffsetSubAccountNumber) {
263: this .cashOffsetSubAccountNumber = cashOffsetSubAccountNumber;
264: }
265:
266: /**
267: * Gets the cashOffsetSubAccount attribute.
268: *
269: * @return Returns the cashOffsetSubAccount.
270: */
271: public SubAccount getCashOffsetSubAccount() {
272: return cashOffsetSubAccount;
273: }
274:
275: /**
276: * Sets the cashOffsetSubAccount attribute value.
277: *
278: * @param cashOffsetSubAccount The cashOffsetSubAccount to set.
279: * @deprecated
280: */
281: public void setCashOffsetSubAccount(SubAccount cashOffsetSubAccount) {
282: this .cashOffsetSubAccount = cashOffsetSubAccount;
283: }
284:
285: /**
286: * Gets the cashOffsetSubObject attribute.
287: *
288: * @return Returns the cashOffsetSubObject.
289: */
290: public SubObjCd getCashOffsetSubObject() {
291: return cashOffsetSubObject;
292: }
293:
294: /**
295: * Sets the cashOffsetSubObject attribute value.
296: *
297: * @param cashOffsetSubObject The cashOffsetSubObject to set.
298: * @deprecated
299: */
300: public void setCashOffsetSubObject(SubObjCd cashOffsetSubObject) {
301: this .cashOffsetSubObject = cashOffsetSubObject;
302: }
303:
304: /**
305: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
306: */
307: protected LinkedHashMap toStringMapper() {
308: LinkedHashMap m = new LinkedHashMap();
309: m.put("bankCode", getFinancialDocumentBankCode());
310: m.put("bankAccountNumber", getFinDocumentBankAccountNumber());
311: return m;
312: }
313:
314: }
|