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 /* 017 * Created on Jul 12, 2004 018 * 019 */ 020 package org.kuali.kfs.pdp.businessobject; 021 022 import java.sql.Timestamp; 023 import java.util.LinkedHashMap; 024 025 import org.apache.commons.lang.builder.EqualsBuilder; 026 import org.apache.commons.lang.builder.HashCodeBuilder; 027 import org.apache.commons.lang.builder.ToStringBuilder; 028 import org.kuali.kfs.sys.KFSPropertyConstants; 029 import org.kuali.kfs.sys.businessobject.TimestampedBusinessObjectBase; 030 import org.kuali.rice.kns.util.KualiInteger; 031 032 public class PaymentAccountHistory extends TimestampedBusinessObjectBase { 033 034 private KualiInteger id; // PMT_ACCT_HIST_ID 035 036 private String accountingChangeCode; 037 private AccountingChangeCode accountingChange; // ACCTG_CHG_CD 038 039 private String acctAttributeName; // ACCT_ATTRIB_NM 040 private String acctAttributeOrigValue; // ACCT_ATTRIB_ORIG_VAL 041 private String acctAttributeNewValue; // ACCT_ATTRIB_NEW_VAL 042 private Timestamp acctChangeDate; // ACCT_CHG_TS 043 044 private KualiInteger paymentAccountDetailId; 045 private PaymentAccountDetail paymentAccountDetail; // PMT_ACCT_DTL_ID 046 047 public PaymentAccountHistory() { 048 super(); 049 } 050 051 /** 052 * @hibernate.many-to-one column="PMT_ACCT_DTL_ID" class="edu.iu.uis.pdp.bo.PaymentAccountHistory" 053 * @return Returns the accountDetailId. 054 */ 055 public PaymentAccountDetail getPaymentAccountDetail() { 056 return paymentAccountDetail; 057 } 058 059 /** 060 * @param accountDetailId The accountDetailId to set. 061 */ 062 public void setPaymentAccountDetail(PaymentAccountDetail pad) { 063 this.paymentAccountDetail = pad; 064 } 065 066 /** 067 * @hibernate.id column="PMT_ACCT_HIST_ID" generator-class="sequence" 068 * @hibernate.generator-param name="sequence" value="PDP.PDP_PMT_ACCT_HIST_ID_SEQ" 069 * @return Returns the Id. 070 */ 071 public KualiInteger getId() { 072 return id; 073 } 074 075 /** 076 * @return 077 * @hibernate.property column="ACCT_ATTRIB_NM" length="25" 078 */ 079 public String getAcctAttributeName() { 080 return acctAttributeName; 081 } 082 083 /** 084 * @return 085 * @hibernate.property column="ACCT_ATTRIB_NEW_VAL" length="15" 086 */ 087 public String getAcctAttributeNewValue() { 088 return acctAttributeNewValue; 089 } 090 091 /** 092 * @return 093 * @hibernate.property column="ACCT_ATTRIB_ORIG_VAL" length="15" 094 */ 095 public String getAcctAttributeOrigValue() { 096 return acctAttributeOrigValue; 097 } 098 099 /** 100 * @return 101 * @hibernate.many-to-one column="ACCTG_CHG_CD" class="edu.iu.uis.pdp.bo.AccountingChange" 102 */ 103 public AccountingChangeCode getAccountingChange() { 104 return accountingChange; 105 } 106 107 /** 108 * @return 109 * @hibernate.property column="ACCT_CHG_TS" 110 */ 111 public Timestamp getAcctChangeDate() { 112 return acctChangeDate; 113 } 114 115 /** 116 * @param string 117 */ 118 public void setAcctAttributeName(String string) { 119 acctAttributeName = string; 120 } 121 122 /** 123 * @param string 124 */ 125 public void setAcctAttributeNewValue(String string) { 126 acctAttributeNewValue = string; 127 } 128 129 /** 130 * @param string 131 */ 132 public void setAcctAttributeOrigValue(String string) { 133 acctAttributeOrigValue = string; 134 } 135 136 /** 137 * @param string 138 */ 139 public void setAccountingChange(AccountingChangeCode ac) { 140 accountingChange = ac; 141 } 142 143 /** 144 * @param timestamp 145 */ 146 public void setAcctChangeDate(Timestamp timestamp) { 147 acctChangeDate = timestamp; 148 } 149 150 /** 151 * @param integer 152 */ 153 public void setId(KualiInteger integer) { 154 id = integer; 155 } 156 157 /** 158 * This method gets the accountingChangeCode 159 * @return accountingChangeCode 160 */ 161 public String getAccountingChangeCode() { 162 return accountingChangeCode; 163 } 164 165 /** 166 * This method sets the accountingChangeCode 167 * @param accountingChangeCode 168 */ 169 public void setAccountingChangeCode(String accountingChangeCode) { 170 this.accountingChangeCode = accountingChangeCode; 171 } 172 173 /** 174 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper() 175 */ 176 @Override 177 protected LinkedHashMap toStringMapper() { 178 LinkedHashMap m = new LinkedHashMap(); 179 180 m.put(KFSPropertyConstants.ID, this.id); 181 182 return m; 183 } 184 185 }