View Javadoc
1   /*
2    * The Kuali Financial System, a comprehensive financial management system for higher education.
3    * 
4    * Copyright 2005-2014 The Kuali Foundation
5    * 
6    * This program is free software: you can redistribute it and/or modify
7    * it under the terms of the GNU Affero General Public License as
8    * published by the Free Software Foundation, either version 3 of the
9    * License, or (at your option) any later version.
10   * 
11   * This program is distributed in the hope that it will be useful,
12   * but WITHOUT ANY WARRANTY; without even the implied warranty of
13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   * GNU Affero General Public License for more details.
15   * 
16   * You should have received a copy of the GNU Affero General Public License
17   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18   */
19  /*
20   * Created on Jul 12, 2004
21   *
22   */
23  package org.kuali.kfs.pdp.businessobject;
24  
25  import java.sql.Timestamp;
26  import java.util.LinkedHashMap;
27  
28  import org.kuali.kfs.sys.KFSPropertyConstants;
29  import org.kuali.kfs.sys.businessobject.TimestampedBusinessObjectBase;
30  import org.kuali.rice.core.api.util.type.KualiInteger;
31  
32  public class PaymentAccountHistory extends TimestampedBusinessObjectBase {
33  
34      private KualiInteger id; // PMT_ACCT_HIST_ID
35  
36      private String accountingChangeCode;
37      private AccountingChangeCode accountingChange; // ACCTG_CHG_CD
38  
39      private String acctAttributeName; // ACCT_ATTRIB_NM
40      private String acctAttributeOrigValue; // ACCT_ATTRIB_ORIG_VAL
41      private String acctAttributeNewValue; // ACCT_ATTRIB_NEW_VAL
42      private Timestamp acctChangeDate; // ACCT_CHG_TS
43      
44      private KualiInteger paymentAccountDetailId;
45      private PaymentAccountDetail paymentAccountDetail; // PMT_ACCT_DTL_ID
46  
47      public PaymentAccountHistory() {
48          super();
49      }
50  
51      /**
52       * @hibernate.many-to-one column="PMT_ACCT_DTL_ID" class="edu.iu.uis.pdp.bo.PaymentAccountHistory"
53       * @return Returns the accountDetailId.
54       */
55      public PaymentAccountDetail getPaymentAccountDetail() {
56          return paymentAccountDetail;
57      }
58  
59      /**
60       * @param accountDetailId The accountDetailId to set.
61       */
62      public void setPaymentAccountDetail(PaymentAccountDetail pad) {
63          this.paymentAccountDetail = pad;
64      }
65  
66      /**
67       * @hibernate.id column="PMT_ACCT_HIST_ID" generator-class="sequence"
68       * @hibernate.generator-param name="sequence" value="PDP.PDP_PMT_ACCT_HIST_ID_SEQ"
69       * @return Returns the Id.
70       */
71      public KualiInteger getId() {
72          return id;
73      }
74  
75      /**
76       * @return
77       * @hibernate.property column="ACCT_ATTRIB_NM" length="25"
78       */
79      public String getAcctAttributeName() {
80          return acctAttributeName;
81      }
82  
83      /**
84       * @return
85       * @hibernate.property column="ACCT_ATTRIB_NEW_VAL" length="15"
86       */
87      public String getAcctAttributeNewValue() {
88          return acctAttributeNewValue;
89      }
90  
91      /**
92       * @return
93       * @hibernate.property column="ACCT_ATTRIB_ORIG_VAL" length="15"
94       */
95      public String getAcctAttributeOrigValue() {
96          return acctAttributeOrigValue;
97      }
98  
99      /**
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.krad.bo.BusinessObjectBase#toStringMapper()
175      */
176     
177     protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
178         LinkedHashMap m = new LinkedHashMap();
179         
180         m.put(KFSPropertyConstants.ID, this.id);
181 
182         return m;
183     }
184    
185 }