View Javadoc
1   /*
2    * Copyright 2007 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  /*
17   * Created on Jul 7, 2004
18   *
19   */
20  package org.kuali.ole.pdp.businessobject;
21  
22  import java.util.LinkedHashMap;
23  
24  import org.kuali.ole.pdp.PdpPropertyConstants;
25  import org.kuali.ole.sys.OLEPropertyConstants;
26  import org.kuali.ole.sys.businessobject.Bank;
27  import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
28  import org.kuali.rice.core.api.util.type.KualiInteger;
29  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
30  
31  public class CustomerBank extends PersistableBusinessObjectBase implements MutableInactivatable {
32      private KualiInteger customerId;
33      private String bankCode;
34      private String disbursementTypeCode;
35      
36      private CustomerProfile customerProfile; 
37      private Bank bank; 
38      private DisbursementType disbursementType;
39      
40      private boolean active;
41  
42      public CustomerBank() {
43          super();
44      }
45  
46      /**
47       * Gets the customerId attribute.
48       * 
49       * @return Returns the customerId.
50       */
51      public KualiInteger getCustomerId() {
52          return customerId;
53      }
54  
55      /**
56       * Sets the customerId attribute value.
57       * 
58       * @param customerId The customerId to set.
59       */
60      public void setCustomerId(KualiInteger customerId) {
61          this.customerId = customerId;
62      }
63  
64      /**
65       * Gets the customerProfile attribute.
66       * 
67       * @return Returns the customerProfile.
68       */
69      public CustomerProfile getCustomerProfile() {
70          return customerProfile;
71      }
72  
73      /**
74       * Sets the customerProfile attribute value.
75       * 
76       * @param customerProfile The customerProfile to set.
77       */
78      public void setCustomerProfile(CustomerProfile customerProfile) {
79          this.customerProfile = customerProfile;
80      }
81  
82      /**
83       * Gets the bankCode attribute.
84       * 
85       * @return Returns the bankCode.
86       */
87      public String getBankCode() {
88          return bankCode;
89      }
90  
91      /**
92       * Sets the bankCode attribute value.
93       * 
94       * @param bankCode The bankCode to set.
95       */
96      public void setBankCode(String bankCode) {
97          this.bankCode = bankCode;
98      }
99  
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 }