1 17 18 package org.sape.carbon.services.sqldataloader.test; 19 20 import java.math.BigDecimal ; 21 22 32 public class TestThreeColumnBean { 33 34 public TestThreeColumnBean() { 35 } 36 37 private BigDecimal key; 38 private String column1Value; 39 private String column2Value; 40 41 42 public BigDecimal getKey() { 43 return this.key; 44 } 45 public void setKey(BigDecimal key) { 46 this.key = key; 47 } 48 49 public String getColumn1Value() { 50 return this.column1Value; 51 } 52 53 public void setColumn1Value(String value) { 54 this.column1Value = value; 55 } 56 57 public String getColumn2Value() { 58 return this.column2Value; 59 } 60 61 public void setColumn2Value(String value) { 62 this.column2Value = value; 63 } 64 65 public boolean equals(Object object) { 66 TestThreeColumnBean threeColumnBean = (TestThreeColumnBean) object; 67 if ((this.key.equals(threeColumnBean.getKey())) && 68 (this.column1Value.equals(threeColumnBean.getColumn1Value())) && 69 (this.column2Value.equals(threeColumnBean.getColumn2Value()))) { 70 return true; 71 } else { 72 return false; 73 } 74 } 75 76 public int hashCode() { 77 return this.key.hashCode(); 78 } 79 } | Popular Tags |