View Javadoc
1   /*
2    * Copyright 2007 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   * Created on Jul 12, 2004
18   *
19   */
20  package org.kuali.ole.pdp.businessobject;
21  
22  import java.sql.Timestamp;
23  import java.util.LinkedHashMap;
24  
25  import org.kuali.ole.sys.OLEPropertyConstants;
26  import org.kuali.ole.sys.businessobject.TimestampedBusinessObjectBase;
27  import org.kuali.rice.core.api.util.type.KualiInteger;
28  
29  public class PaymentAccountHistory extends TimestampedBusinessObjectBase {
30  
31      private KualiInteger id; // PMT_ACCT_HIST_ID
32  
33      private String accountingChangeCode;
34      private AccountingChangeCode accountingChange; // ACCTG_CHG_CD
35  
36      private String acctAttributeName; // ACCT_ATTRIB_NM
37      private String acctAttributeOrigValue; // ACCT_ATTRIB_ORIG_VAL
38      private String acctAttributeNewValue; // ACCT_ATTRIB_NEW_VAL
39      private Timestamp acctChangeDate; // ACCT_CHG_TS
40      
41      private KualiInteger paymentAccountDetailId;
42      private PaymentAccountDetail paymentAccountDetail; // PMT_ACCT_DTL_ID
43  
44      public PaymentAccountHistory() {
45          super();
46      }
47  
48      /**
49       * @hibernate.many-to-one column="PMT_ACCT_DTL_ID" class="edu.iu.uis.pdp.bo.PaymentAccountHistory"
50       * @return Returns the accountDetailId.
51       */
52      public PaymentAccountDetail getPaymentAccountDetail() {
53          return paymentAccountDetail;
54      }
55  
56      /**
57       * @param accountDetailId The accountDetailId to set.
58       */
59      public void setPaymentAccountDetail(PaymentAccountDetail pad) {
60          this.paymentAccountDetail = pad;
61      }
62  
63      /**
64       * @hibernate.id column="PMT_ACCT_HIST_ID" generator-class="sequence"
65       * @hibernate.generator-param name="sequence" value="PDP.PDP_PMT_ACCT_HIST_ID_SEQ"
66       * @return Returns the Id.
67       */
68      public KualiInteger getId() {
69          return id;
70      }
71  
72      /**
73       * @return
74       * @hibernate.property column="ACCT_ATTRIB_NM" length="25"
75       */
76      public String getAcctAttributeName() {
77          return acctAttributeName;
78      }
79  
80      /**
81       * @return
82       * @hibernate.property column="ACCT_ATTRIB_NEW_VAL" length="15"
83       */
84      public String getAcctAttributeNewValue() {
85          return acctAttributeNewValue;
86      }
87  
88      /**
89       * @return
90       * @hibernate.property column="ACCT_ATTRIB_ORIG_VAL" length="15"
91       */
92      public String getAcctAttributeOrigValue() {
93          return acctAttributeOrigValue;
94      }
95  
96      /**
97       * @return
98       * @hibernate.many-to-one column="ACCTG_CHG_CD" class="edu.iu.uis.pdp.bo.AccountingChange"
99       */
100     public AccountingChangeCode getAccountingChange() {
101         return accountingChange;
102     }
103 
104     /**
105      * @return
106      * @hibernate.property column="ACCT_CHG_TS"
107      */
108     public Timestamp getAcctChangeDate() {
109         return acctChangeDate;
110     }
111 
112     /**
113      * @param string
114      */
115     public void setAcctAttributeName(String string) {
116         acctAttributeName = string;
117     }
118 
119     /**
120      * @param string
121      */
122     public void setAcctAttributeNewValue(String string) {
123         acctAttributeNewValue = string;
124     }
125 
126     /**
127      * @param string
128      */
129     public void setAcctAttributeOrigValue(String string) {
130         acctAttributeOrigValue = string;
131     }
132 
133     /**
134      * @param string
135      */
136     public void setAccountingChange(AccountingChangeCode ac) {
137         accountingChange = ac;
138     }
139 
140     /**
141      * @param timestamp
142      */
143     public void setAcctChangeDate(Timestamp timestamp) {
144         acctChangeDate = timestamp;
145     }
146 
147     /**
148      * @param integer
149      */
150     public void setId(KualiInteger integer) {
151         id = integer;
152     }
153 
154     /**
155      * This method gets the accountingChangeCode
156      * @return accountingChangeCode
157      */
158     public String getAccountingChangeCode() {
159         return accountingChangeCode;
160     }
161 
162     /**
163      * This method sets the accountingChangeCode
164      * @param accountingChangeCode
165      */
166     public void setAccountingChangeCode(String accountingChangeCode) {
167         this.accountingChangeCode = accountingChangeCode;
168     }
169 
170     /**
171      * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
172      */
173     
174     protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
175         LinkedHashMap m = new LinkedHashMap();
176         
177         m.put(OLEPropertyConstants.ID, this.id);
178 
179         return m;
180     }
181    
182 }