1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole.module.purap.businessobject;
17
18
19 import org.apache.commons.lang.builder.EqualsBuilder;
20 import org.apache.commons.lang.builder.HashCodeBuilder;
21 import org.kuali.rice.core.api.util.type.KualiDecimal;
22 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
23
24 import java.util.LinkedHashMap;
25
26 public abstract class PurApItemUseTaxBase extends PersistableBusinessObjectBase implements PurApItemUseTax {
27
28 private Integer useTaxId;
29 private Integer itemIdentifier;
30 private String rateCode;
31 private KualiDecimal taxAmount;
32 private String chartOfAccountsCode;
33 private String accountNumber;
34 private String financialObjectCode;
35
36 public PurApItemUseTaxBase() {
37 super();
38 }
39
40 public PurApItemUseTaxBase(PurApItemUseTax itemUseTax) {
41 super();
42 setAccountNumber(itemUseTax.getAccountNumber());
43 setChartOfAccountsCode(itemUseTax.getChartOfAccountsCode());
44 setFinancialObjectCode(itemUseTax.getFinancialObjectCode());
45 setRateCode(itemUseTax.getRateCode());
46 setTaxAmount(itemUseTax.getTaxAmount());
47 }
48
49 public String getAccountNumber() {
50 return accountNumber;
51 }
52
53 public void setAccountNumber(String accountNumber) {
54 this.accountNumber = accountNumber;
55 }
56
57 public String getChartOfAccountsCode() {
58 return chartOfAccountsCode;
59 }
60
61 public void setChartOfAccountsCode(String chartOfAccountsCode) {
62 this.chartOfAccountsCode = chartOfAccountsCode;
63 }
64
65 public String getFinancialObjectCode() {
66 return financialObjectCode;
67 }
68
69 public void setFinancialObjectCode(String financialObjectCode) {
70 this.financialObjectCode = financialObjectCode;
71 }
72
73 public Integer getItemIdentifier() {
74 return itemIdentifier;
75 }
76
77 public void setItemIdentifier(Integer itemIdentifier) {
78 this.itemIdentifier = itemIdentifier;
79 }
80
81 public Integer getUseTaxId() {
82 return useTaxId;
83 }
84
85 public void setUseTaxId(Integer useTaxId) {
86 this.useTaxId = useTaxId;
87 }
88
89 public String getRateCode() {
90 return rateCode;
91 }
92
93 public void setRateCode(String rateCode) {
94 this.rateCode = rateCode;
95 }
96
97 public KualiDecimal getTaxAmount() {
98 return taxAmount;
99 }
100
101 public void setTaxAmount(KualiDecimal taxAmount) {
102 this.taxAmount = taxAmount;
103 }
104
105 protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
106 LinkedHashMap m = new LinkedHashMap();
107 m.put("useTaxId", this.useTaxId);
108 return m;
109 }
110
111
112
113
114
115
116 public boolean equals(Object obj) {
117 if (!(obj instanceof PurApItemUseTaxBase)) {
118 return false;
119 }
120 PurApItemUseTax purapItemUseTax = (PurApItemUseTax) obj;
121 return new EqualsBuilder().append(this.chartOfAccountsCode, purapItemUseTax.getChartOfAccountsCode()).
122 append(this.accountNumber, purapItemUseTax.getAccountNumber()).
123 append(this.getRateCode(), purapItemUseTax.getRateCode()).
124 append(this.financialObjectCode, purapItemUseTax.getFinancialObjectCode()).isEquals();
125 }
126
127
128
129
130
131
132 public int hashCode() {
133 return new HashCodeBuilder(55, 97).
134 append(this.chartOfAccountsCode).
135 append(this.accountNumber).
136 append(this.getRateCode()).
137 append(this.financialObjectCode).toHashCode();
138 }
139
140 }