001/*
002 * Copyright 2007 The Kuali Foundation
003 * 
004 * Licensed under the Educational Community License, Version 2.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/ecl2.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 * Created on Jul 7, 2004
018 *
019 */
020package org.kuali.ole.pdp.businessobject;
021
022import java.util.LinkedHashMap;
023
024import org.kuali.ole.pdp.PdpPropertyConstants;
025import org.kuali.ole.sys.OLEPropertyConstants;
026import org.kuali.ole.sys.businessobject.Bank;
027import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
028import org.kuali.rice.core.api.util.type.KualiInteger;
029import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
030
031public class CustomerBank extends PersistableBusinessObjectBase implements MutableInactivatable {
032    private KualiInteger customerId;
033    private String bankCode;
034    private String disbursementTypeCode;
035    
036    private CustomerProfile customerProfile; 
037    private Bank bank; 
038    private DisbursementType disbursementType;
039    
040    private boolean active;
041
042    public CustomerBank() {
043        super();
044    }
045
046    /**
047     * Gets the customerId attribute.
048     * 
049     * @return Returns the customerId.
050     */
051    public KualiInteger getCustomerId() {
052        return customerId;
053    }
054
055    /**
056     * Sets the customerId attribute value.
057     * 
058     * @param customerId The customerId to set.
059     */
060    public void setCustomerId(KualiInteger customerId) {
061        this.customerId = customerId;
062    }
063
064    /**
065     * Gets the customerProfile attribute.
066     * 
067     * @return Returns the customerProfile.
068     */
069    public CustomerProfile getCustomerProfile() {
070        return customerProfile;
071    }
072
073    /**
074     * Sets the customerProfile attribute value.
075     * 
076     * @param customerProfile The customerProfile to set.
077     */
078    public void setCustomerProfile(CustomerProfile customerProfile) {
079        this.customerProfile = customerProfile;
080    }
081
082    /**
083     * Gets the bankCode attribute.
084     * 
085     * @return Returns the bankCode.
086     */
087    public String getBankCode() {
088        return bankCode;
089    }
090
091    /**
092     * Sets the bankCode attribute value.
093     * 
094     * @param bankCode The bankCode to set.
095     */
096    public void setBankCode(String bankCode) {
097        this.bankCode = bankCode;
098    }
099
100    /**
101     * Gets the bank attribute.
102     * 
103     * @return Returns the bank.
104     */
105    public Bank getBank() {
106        return bank;
107    }
108
109    /**
110     * Sets the bank attribute value.
111     * 
112     * @param bank The bank to set.
113     */
114    public void setBank(Bank bank) {
115        this.bank = bank;
116    }
117
118    /**
119     * Gets the disbursementTypeCode attribute.
120     * 
121     * @return Returns the disbursementTypeCode.
122     */
123    public String getDisbursementTypeCode() {
124        return disbursementTypeCode;
125    }
126
127    /**
128     * Sets the disbursementTypeCode attribute value.
129     * 
130     * @param disbursementTypeCode The disbursementTypeCode to set.
131     */
132    public void setDisbursementTypeCode(String disbursementTypeCode) {
133        this.disbursementTypeCode = disbursementTypeCode;
134    }
135
136    /**
137     * Gets the disbursementType attribute.
138     * 
139     * @return Returns the disbursementType.
140     */
141    public DisbursementType getDisbursementType() {
142        return disbursementType;
143    }
144
145    /**
146     * Sets the disbursementType attribute value.
147     * 
148     * @param disbursementType The disbursementType to set.
149     */
150    public void setDisbursementType(DisbursementType disbursementType) {
151        this.disbursementType = disbursementType;
152    }
153
154    /**
155     * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
156     */
157    
158    protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
159        LinkedHashMap m = new LinkedHashMap();
160        m.put(PdpPropertyConstants.CUSTOMER_ID, this.customerId);
161        m.put(PdpPropertyConstants.DISBURSEMENT_TYPE_CODE, this.disbursementTypeCode);
162        m.put(OLEPropertyConstants.BANK_CODE, this.bankCode);
163        
164        return m;
165    }
166
167    /**
168     * 
169     * @see org.kuali.rice.core.api.mo.common.active.MutableInactivatable#isActive()
170     */
171    public boolean isActive() {
172        return active;
173    }
174    
175    /**
176     * 
177     * @see org.kuali.rice.core.api.mo.common.active.MutableInactivatable#setActive(boolean)
178     */
179    public void setActive(boolean active) {
180        this.active = active;
181    }
182
183
184}