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: import java.util.List;
020:
021: import org.kuali.core.bo.PersistableBusinessObjectBase;
022:
023: /**
024: * This class represents a bank
025: */
026:
027: public class Bank extends PersistableBusinessObjectBase {
028:
029: private static final long serialVersionUID = 6091563911993138998L;
030: private String financialDocumentBankCode;
031: private String financialDocumentBankName;
032: private String financialDocumentBankShortNm;
033: private String bankRoutingNumber;
034: private List bankAccounts;
035:
036: /**
037: * Default no-arg constructor.
038: */
039:
040: public Bank() {
041: super ();
042: }
043:
044: /**
045: * Gets the financialDocumentBankCode attribute.
046: *
047: * @return Returns the financialDocumentBankCode
048: */
049: public String getFinancialDocumentBankCode() {
050: return financialDocumentBankCode;
051: }
052:
053: /**
054: * Sets the financialDocumentBankCode attribute.
055: *
056: * @param financialDocumentBankCode The financialDocumentBankCode to set.
057: */
058: public void setFinancialDocumentBankCode(
059: String financialDocumentBankCode) {
060: this .financialDocumentBankCode = financialDocumentBankCode;
061: }
062:
063: /**
064: * Gets the financialDocumentBankName attribute.
065: *
066: * @return Returns the financialDocumentBankName
067: */
068: public String getFinancialDocumentBankName() {
069: return financialDocumentBankName;
070: }
071:
072: /**
073: * Sets the financialDocumentBankName attribute.
074: *
075: * @param financialDocumentBankName The financialDocumentBankName to set.
076: */
077: public void setFinancialDocumentBankName(
078: String financialDocumentBankName) {
079: this .financialDocumentBankName = financialDocumentBankName;
080: }
081:
082: /**
083: * Gets the financialDocumentBankShortNm attribute.
084: *
085: * @return Returns the financialDocumentBankShortNm
086: */
087: public String getFinancialDocumentBankShortNm() {
088: return financialDocumentBankShortNm;
089: }
090:
091: /**
092: * Sets the financialDocumentBankShortNm attribute.
093: *
094: * @param financialDocumentBankShortNm The financialDocumentBankShortNm to set.
095: */
096: public void setFinancialDocumentBankShortNm(
097: String financialDocumentBankShortNm) {
098: this .financialDocumentBankShortNm = financialDocumentBankShortNm;
099: }
100:
101: /**
102: * Gets the bankAccounts attribute.
103: *
104: * @return Returns the bankAccounts
105: */
106: public List getBankAccounts() {
107: return bankAccounts;
108: }
109:
110: /**
111: * Sets the bankAccounts attribute.
112: *
113: * @param bankAccounts The bankAccounts to set.
114: */
115: public void setBankAccounts(List bankAccounts) {
116: this .bankAccounts = bankAccounts;
117: }
118:
119: /**
120: * Gets the bankRoutingNumber attribute.
121: *
122: * @return Returns the bankRoutingNumber.
123: */
124: public String getBankRoutingNumber() {
125: return bankRoutingNumber;
126: }
127:
128: /**
129: * Sets the bankRoutingNumber attribute value.
130: *
131: * @param bankRoutingNumber The bankRoutingNumber to set.
132: */
133: public void setBankRoutingNumber(String bankRoutingNumber) {
134: this .bankRoutingNumber = bankRoutingNumber;
135: }
136:
137: /**
138: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
139: */
140: protected LinkedHashMap toStringMapper() {
141: LinkedHashMap m = new LinkedHashMap();
142:
143: m.put("bankCode", getFinancialDocumentBankCode());
144:
145: return m;
146: }
147:
148: }
|