View Javadoc
1   /*
2    * Copyright 2011 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  package org.kuali.ole.coa.businessobject;
18  
19  import java.util.LinkedHashMap;
20  
21  import org.apache.log4j.Logger;
22  import org.springframework.beans.BeanUtils;
23  
24  /**
25   * IndirectCostRecoveryAccount for A21SubAccount
26   */
27  public class A21IndirectCostRecoveryAccount extends IndirectCostRecoveryAccount {
28      private static Logger LOG = Logger.getLogger(A21IndirectCostRecoveryAccount.class);
29  
30      private Integer a21IndirectCostRecoveryAccountGeneratedIdentifier;
31      
32      //additional foreign keys to SubAccount
33      private String subAccountNumber;
34      
35      /**
36       * Default constructor.
37       */
38      public A21IndirectCostRecoveryAccount() {
39      }
40      
41      /**
42       * private constructor 
43       * 
44       * @param icr
45       */
46      private A21IndirectCostRecoveryAccount(IndirectCostRecoveryAccount icr) {
47          BeanUtils.copyProperties(icr,this);
48      }
49      
50      /**
51       * static instantiate an A21ICRAccount from an ICRAccount
52       *
53       * @param icrAccount
54       * @return
55       */
56      public static A21IndirectCostRecoveryAccount copyICRAccount(IndirectCostRecoveryAccount icrAccount) {
57          return new A21IndirectCostRecoveryAccount(icrAccount); 
58      }
59  
60      public Integer getA21IndirectCostRecoveryAccountGeneratedIdentifier() {
61          return a21IndirectCostRecoveryAccountGeneratedIdentifier;
62      }
63  
64      public void setA21IndirectCostRecoveryAccountGeneratedIdentifier(Integer a21IndirectCostRecoveryAccountGeneratedIdentifier) {
65          this.a21IndirectCostRecoveryAccountGeneratedIdentifier = a21IndirectCostRecoveryAccountGeneratedIdentifier;
66      }
67  
68      public String getSubAccountNumber() {
69          return subAccountNumber;
70      }
71  
72      public void setSubAccountNumber(String subAccountNumber) {
73          this.subAccountNumber = subAccountNumber;
74      }
75  
76      /**
77       * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
78       */
79      protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
80          LinkedHashMap<String, String> m = new LinkedHashMap<String, String>();
81          if (this.a21IndirectCostRecoveryAccountGeneratedIdentifier != null) {
82              m.put("a21IndirectCostRecoveryAccountGeneratedIdentifier", this.a21IndirectCostRecoveryAccountGeneratedIdentifier.toString());
83          }
84          return m;
85      }
86  
87  }