View Javadoc
1   /*
2    * Copyright 2005-2008 The Kuali Foundation
3    * 
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl2.php
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.ole.sys.businessobject;
17  
18  import org.kuali.ole.coa.businessobject.Account;
19  import org.kuali.ole.coa.businessobject.Chart;
20  import org.kuali.ole.coa.businessobject.ObjectCode;
21  import org.kuali.ole.coa.businessobject.SubAccount;
22  import org.kuali.ole.coa.businessobject.SubObjectCode;
23  import org.kuali.ole.sys.OLEConstants;
24  import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
25  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
26  
27  /**
28   * Bank Business Object
29   */
30  public class Bank extends PersistableBusinessObjectBase implements MutableInactivatable {
31      public static final String CACHE_NAME = OLEConstants.APPLICATION_NAMESPACE_CODE + "/" + "Bank";
32  
33      protected String bankCode;
34      protected String bankName;
35      protected String bankShortName;
36      protected String bankRoutingNumber;
37      protected String bankAccountNumber;
38      protected String bankAccountDescription;
39      protected String cashOffsetFinancialChartOfAccountCode;
40      protected String cashOffsetAccountNumber;
41      protected String cashOffsetSubAccountNumber;
42      protected String cashOffsetObjectCode;
43      protected String cashOffsetSubObjectCode;
44      protected String continuationBankCode;
45      protected boolean bankDepositIndicator;
46      protected boolean bankDisbursementIndicator;
47      protected boolean bankAchIndicator;
48      protected boolean bankCheckIndicator;
49      protected boolean active;
50  
51      protected Chart cashOffsetFinancialChartOfAccount;
52      protected Account cashOffsetAccount;
53      protected ObjectCode cashOffsetObject;
54      protected SubAccount cashOffsetSubAccount;
55      protected SubObjectCode cashOffsetSubObject;
56      protected Bank continuationBank;
57  
58      /**
59       * Default no-arg constructor.
60       */
61  
62      public Bank() {
63          super();
64      }
65  
66      /**
67       * Gets the bankCode attribute.
68       * 
69       * @return Returns the bankCode.
70       */
71      public String getBankCode() {
72          return bankCode;
73      }
74  
75  
76      /**
77       * Sets the bankCode attribute value.
78       * 
79       * @param bankCode The bankCode to set.
80       */
81      public void setBankCode(String bankCode) {
82          this.bankCode = bankCode;
83      }
84  
85  
86      /**
87       * Gets the bankName attribute.
88       * 
89       * @return Returns the bankName.
90       */
91      public String getBankName() {
92          return bankName;
93      }
94  
95  
96      /**
97       * Sets the bankName attribute value.
98       * 
99       * @param bankName The bankName to set.
100      */
101     public void setBankName(String bankName) {
102         this.bankName = bankName;
103     }
104 
105 
106     /**
107      * Gets the bankShortName attribute.
108      * 
109      * @return Returns the bankShortName.
110      */
111     public String getBankShortName() {
112         return bankShortName;
113     }
114 
115 
116     /**
117      * Sets the bankShortName attribute value.
118      * 
119      * @param bankShortName The bankShortName to set.
120      */
121     public void setBankShortName(String bankShortName) {
122         this.bankShortName = bankShortName;
123     }
124 
125 
126     /**
127      * Gets the bankRoutingNumber attribute.
128      * 
129      * @return Returns the bankRoutingNumber.
130      */
131     public String getBankRoutingNumber() {
132         return bankRoutingNumber;
133     }
134 
135 
136     /**
137      * Sets the bankRoutingNumber attribute value.
138      * 
139      * @param bankRoutingNumber The bankRoutingNumber to set.
140      */
141     public void setBankRoutingNumber(String bankRoutingNumber) {
142         this.bankRoutingNumber = bankRoutingNumber;
143     }
144 
145 
146     /**
147      * Gets the bankAccountNumber attribute.
148      * 
149      * @return Returns the bankAccountNumber.
150      */
151     public String getBankAccountNumber() {
152         return bankAccountNumber;
153     }
154 
155 
156     /**
157      * Sets the bankAccountNumber attribute value.
158      * 
159      * @param bankAccountNumber The bankAccountNumber to set.
160      */
161     public void setBankAccountNumber(String bankAccountNumber) {
162         this.bankAccountNumber = bankAccountNumber;
163     }
164 
165 
166     /**
167      * Gets the bankAccountDescription attribute.
168      * 
169      * @return Returns the bankAccountDescription.
170      */
171     public String getBankAccountDescription() {
172         return bankAccountDescription;
173     }
174 
175 
176     /**
177      * Sets the bankAccountDescription attribute value.
178      * 
179      * @param bankAccountDescription The bankAccountDescription to set.
180      */
181     public void setBankAccountDescription(String bankAccountDescription) {
182         this.bankAccountDescription = bankAccountDescription;
183     }
184 
185 
186     /**
187      * Gets the cashOffsetFinancialChartOfAccountCode attribute.
188      * 
189      * @return Returns the cashOffsetFinancialChartOfAccountCode.
190      */
191     public String getCashOffsetFinancialChartOfAccountCode() {
192         return cashOffsetFinancialChartOfAccountCode;
193     }
194 
195 
196     /**
197      * Sets the cashOffsetFinancialChartOfAccountCode attribute value.
198      * 
199      * @param cashOffsetFinancialChartOfAccountCode The cashOffsetFinancialChartOfAccountCode to set.
200      */
201     public void setCashOffsetFinancialChartOfAccountCode(String cashOffsetFinancialChartOfAccountCode) {
202         this.cashOffsetFinancialChartOfAccountCode = cashOffsetFinancialChartOfAccountCode;
203     }
204 
205 
206     /**
207      * Gets the cashOffsetAccountNumber attribute.
208      * 
209      * @return Returns the cashOffsetAccountNumber.
210      */
211     public String getCashOffsetAccountNumber() {
212         return cashOffsetAccountNumber;
213     }
214 
215 
216     /**
217      * Sets the cashOffsetAccountNumber attribute value.
218      * 
219      * @param cashOffsetAccountNumber The cashOffsetAccountNumber to set.
220      */
221     public void setCashOffsetAccountNumber(String cashOffsetAccountNumber) {
222         this.cashOffsetAccountNumber = cashOffsetAccountNumber;
223     }
224 
225 
226     /**
227      * Gets the cashOffsetSubAccountNumber attribute.
228      * 
229      * @return Returns the cashOffsetSubAccountNumber.
230      */
231     public String getCashOffsetSubAccountNumber() {
232         return cashOffsetSubAccountNumber;
233     }
234 
235 
236     /**
237      * Sets the cashOffsetSubAccountNumber attribute value.
238      * 
239      * @param cashOffsetSubAccountNumber The cashOffsetSubAccountNumber to set.
240      */
241     public void setCashOffsetSubAccountNumber(String cashOffsetSubAccountNumber) {
242         this.cashOffsetSubAccountNumber = cashOffsetSubAccountNumber;
243     }
244 
245 
246     /**
247      * Gets the cashOffsetObjectCode attribute.
248      * 
249      * @return Returns the cashOffsetObjectCode.
250      */
251     public String getCashOffsetObjectCode() {
252         return cashOffsetObjectCode;
253     }
254 
255 
256     /**
257      * Sets the cashOffsetObjectCode attribute value.
258      * 
259      * @param cashOffsetObjectCode The cashOffsetObjectCode to set.
260      */
261     public void setCashOffsetObjectCode(String cashOffsetObjectCode) {
262         this.cashOffsetObjectCode = cashOffsetObjectCode;
263     }
264 
265 
266     /**
267      * Gets the cashOffsetSubObjectCode attribute.
268      * 
269      * @return Returns the cashOffsetSubObjectCode.
270      */
271     public String getCashOffsetSubObjectCode() {
272         return cashOffsetSubObjectCode;
273     }
274 
275 
276     /**
277      * Sets the cashOffsetSubObjectCode attribute value.
278      * 
279      * @param cashOffsetSubObjectCode The cashOffsetSubObjectCode to set.
280      */
281     public void setCashOffsetSubObjectCode(String cashOffsetSubObjectCode) {
282         this.cashOffsetSubObjectCode = cashOffsetSubObjectCode;
283     }
284 
285 
286     /**
287      * Gets the bankDepositIndicator attribute.
288      * 
289      * @return Returns the bankDepositIndicator.
290      */
291     public boolean isBankDepositIndicator() {
292         return bankDepositIndicator;
293     }
294 
295 
296     /**
297      * Sets the bankDepositIndicator attribute value.
298      * 
299      * @param bankDepositIndicator The bankDepositIndicator to set.
300      */
301     public void setBankDepositIndicator(boolean bankDepositIndicator) {
302         this.bankDepositIndicator = bankDepositIndicator;
303     }
304 
305 
306     /**
307      * Gets the bankDisbursementIndicator attribute.
308      * 
309      * @return Returns the bankDisbursementIndicator.
310      */
311     public boolean isBankDisbursementIndicator() {
312         return bankDisbursementIndicator;
313     }
314 
315 
316     /**
317      * Sets the bankDisbursementIndicator attribute value.
318      * 
319      * @param bankDisbursementIndicator The bankDisbursementIndicator to set.
320      */
321     public void setBankDisbursementIndicator(boolean bankDisbursementIndicator) {
322         this.bankDisbursementIndicator = bankDisbursementIndicator;
323     }
324 
325 
326     /**
327      * Gets the bankAchIndicator attribute.
328      * 
329      * @return Returns the bankAchIndicator.
330      */
331     public boolean isBankAchIndicator() {
332         return bankAchIndicator;
333     }
334 
335 
336     /**
337      * Sets the bankAchIndicator attribute value.
338      * 
339      * @param bankAchIndicator The bankAchIndicator to set.
340      */
341     public void setBankAchIndicator(boolean bankAchIndicator) {
342         this.bankAchIndicator = bankAchIndicator;
343     }
344 
345 
346     /**
347      * Gets the bankCheckIndicator attribute.
348      * 
349      * @return Returns the bankCheckIndicator.
350      */
351     public boolean isBankCheckIndicator() {
352         return bankCheckIndicator;
353     }
354 
355 
356     /**
357      * Sets the bankCheckIndicator attribute value.
358      * 
359      * @param bankCheckIndicator The bankCheckIndicator to set.
360      */
361     public void setBankCheckIndicator(boolean bankCheckIndicator) {
362         this.bankCheckIndicator = bankCheckIndicator;
363     }
364 
365 
366     /**
367      * Gets the active attribute.
368      * 
369      * @return Returns the active.
370      */
371     @Override
372     public boolean isActive() {
373         return active;
374     }
375 
376 
377     /**
378      * Sets the active attribute value.
379      * 
380      * @param active The active to set.
381      */
382     @Override
383     public void setActive(boolean active) {
384         this.active = active;
385     }
386 
387     /**
388      * Gets the cashOffsetFinancialChartOfAccount attribute.
389      * 
390      * @return Returns the cashOffsetFinancialChartOfAccount.
391      */
392     public Chart getCashOffsetFinancialChartOfAccount() {
393         return cashOffsetFinancialChartOfAccount;
394     }
395 
396     /**
397      * Sets the cashOffsetFinancialChartOfAccount attribute value.
398      * 
399      * @param cashOffsetFinancialChartOfAccount The cashOffsetFinancialChartOfAccount to set.
400      */
401     public void setCashOffsetFinancialChartOfAccount(Chart cashOffsetFinancialChartOfAccount) {
402         this.cashOffsetFinancialChartOfAccount = cashOffsetFinancialChartOfAccount;
403     }
404 
405     /**
406      * Gets the cashOffsetAccount attribute.
407      * 
408      * @return Returns the cashOffsetAccount.
409      */
410     public Account getCashOffsetAccount() {
411         return cashOffsetAccount;
412     }
413 
414     /**
415      * Sets the cashOffsetAccount attribute value.
416      * 
417      * @param cashOffsetAccount The cashOffsetAccount to set.
418      */
419     public void setCashOffsetAccount(Account cashOffsetAccount) {
420         this.cashOffsetAccount = cashOffsetAccount;
421     }
422 
423     /**
424      * Gets the cashOffsetObject attribute.
425      * 
426      * @return Returns the cashOffsetObject.
427      */
428     public ObjectCode getCashOffsetObject() {
429         return cashOffsetObject;
430     }
431 
432     /**
433      * Sets the cashOffsetObject attribute value.
434      * 
435      * @param cashOffsetObject The cashOffsetObject to set.
436      */
437     public void setCashOffsetObject(ObjectCode cashOffsetObject) {
438         this.cashOffsetObject = cashOffsetObject;
439     }
440 
441     /**
442      * Gets the cashOffsetSubAccount attribute.
443      * 
444      * @return Returns the cashOffsetSubAccount.
445      */
446     public SubAccount getCashOffsetSubAccount() {
447         return cashOffsetSubAccount;
448     }
449 
450     /**
451      * Sets the cashOffsetSubAccount attribute value.
452      * 
453      * @param cashOffsetSubAccount The cashOffsetSubAccount to set.
454      */
455     public void setCashOffsetSubAccount(SubAccount cashOffsetSubAccount) {
456         this.cashOffsetSubAccount = cashOffsetSubAccount;
457     }
458 
459     /**
460      * Gets the cashOffsetSubObject attribute.
461      * 
462      * @return Returns the cashOffsetSubObject.
463      */
464     public SubObjectCode getCashOffsetSubObject() {
465         return cashOffsetSubObject;
466     }
467 
468     /**
469      * Sets the cashOffsetSubObject attribute value.
470      * 
471      * @param cashOffsetSubObject The cashOffsetSubObject to set.
472      */
473     public void setCashOffsetSubObject(SubObjectCode cashOffsetSubObject) {
474         this.cashOffsetSubObject = cashOffsetSubObject;
475     }
476 
477     /**
478      * Gets the continuationBankCode attribute.
479      * 
480      * @return Returns the continuationBankCode.
481      */
482     public String getContinuationBankCode() {
483         return continuationBankCode;
484     }
485 
486     /**
487      * Sets the continuationBankCode attribute value.
488      * 
489      * @param continuationBankCode The continuationBankCode to set.
490      */
491     public void setContinuationBankCode(String continuationBankCode) {
492         this.continuationBankCode = continuationBankCode;
493     }
494 
495     /**
496      * Gets the continuationBank attribute.
497      * 
498      * @return Returns the continuationBank.
499      */
500     public Bank getContinuationBank() {
501         return continuationBank;
502     }
503 
504     /**
505      * Sets the continuationBank attribute value.
506      * 
507      * @param continuationBank The continuationBank to set.
508      */
509     public void setContinuationBank(Bank continuationBank) {
510         this.continuationBank = continuationBank;
511     }
512 
513 }