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 PriorYearIndirectCostRecoveryAccount extends IndirectCostRecoveryAccount {
28      private static Logger LOG = Logger.getLogger(PriorYearIndirectCostRecoveryAccount.class);
29  
30      private Integer priorYearIndirectCostRecoveryAccountGeneratedIdentifier;
31      
32      /**
33       * Default constructor.
34       */
35      public PriorYearIndirectCostRecoveryAccount() {
36      }
37      
38      public PriorYearIndirectCostRecoveryAccount(IndirectCostRecoveryAccount icr) {
39          BeanUtils.copyProperties(icr,this);
40      }
41  
42      public Integer getPriorYearIndirectCostRecoveryAccountGeneratedIdentifier() {
43          return priorYearIndirectCostRecoveryAccountGeneratedIdentifier;
44      }
45  
46      public void setPriorYearIndirectCostRecoveryAccountGeneratedIdentifier(Integer priorYearIndirectCostRecoveryAccountGeneratedIdentifier) {
47          this.priorYearIndirectCostRecoveryAccountGeneratedIdentifier = priorYearIndirectCostRecoveryAccountGeneratedIdentifier;
48      }
49  
50      /**
51       * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
52       */
53      protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
54          LinkedHashMap<String, String> m = new LinkedHashMap<String, String>();
55          if (this.priorYearIndirectCostRecoveryAccountGeneratedIdentifier != null) {
56              m.put("priorYearIndirectCostRecoveryAccountGeneratedIdentifier", this.priorYearIndirectCostRecoveryAccountGeneratedIdentifier.toString());
57          }
58          return m;
59      }
60  
61  }