001/* 002 * Copyright 2011 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 017package org.kuali.ole.coa.businessobject; 018 019import java.util.LinkedHashMap; 020 021import org.apache.log4j.Logger; 022import org.springframework.beans.BeanUtils; 023 024/** 025 * IndirectCostRecoveryAccount for A21SubAccount 026 */ 027public class PriorYearIndirectCostRecoveryAccount extends IndirectCostRecoveryAccount { 028 private static Logger LOG = Logger.getLogger(PriorYearIndirectCostRecoveryAccount.class); 029 030 private Integer priorYearIndirectCostRecoveryAccountGeneratedIdentifier; 031 032 /** 033 * Default constructor. 034 */ 035 public PriorYearIndirectCostRecoveryAccount() { 036 } 037 038 public PriorYearIndirectCostRecoveryAccount(IndirectCostRecoveryAccount icr) { 039 BeanUtils.copyProperties(icr,this); 040 } 041 042 public Integer getPriorYearIndirectCostRecoveryAccountGeneratedIdentifier() { 043 return priorYearIndirectCostRecoveryAccountGeneratedIdentifier; 044 } 045 046 public void setPriorYearIndirectCostRecoveryAccountGeneratedIdentifier(Integer priorYearIndirectCostRecoveryAccountGeneratedIdentifier) { 047 this.priorYearIndirectCostRecoveryAccountGeneratedIdentifier = priorYearIndirectCostRecoveryAccountGeneratedIdentifier; 048 } 049 050 /** 051 * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper() 052 */ 053 protected LinkedHashMap toStringMapper_RICE20_REFACTORME() { 054 LinkedHashMap<String, String> m = new LinkedHashMap<String, String>(); 055 if (this.priorYearIndirectCostRecoveryAccountGeneratedIdentifier != null) { 056 m.put("priorYearIndirectCostRecoveryAccountGeneratedIdentifier", this.priorYearIndirectCostRecoveryAccountGeneratedIdentifier.toString()); 057 } 058 return m; 059 } 060 061}