1 package org.tigris.scarab.reports; 2 3 41 42 import org.apache.fulcrum.intake.Retrievable; 43 import org.apache.commons.lang.ObjectUtils; 44 45 50 public class ReportOptionAttribute 51 implements java.io.Serializable , 52 Retrievable 53 { 54 private Integer optionId; 55 56 60 public Integer getOptionId() 61 { 62 return optionId; 63 } 64 65 69 public void setOptionId(Integer newOptionId) 70 { 71 this.optionId = newOptionId; 72 } 73 74 public boolean equals(Object obj) 75 { 76 boolean result = obj == this; 77 if (!result && obj instanceof ReportOptionAttribute) 78 { 79 result = ObjectUtils.equals(optionId, 80 ((ReportOptionAttribute)obj).getOptionId()); 81 } 82 return result; 83 } 84 85 public int hashCode() 86 { 87 return optionId == null ? 0 : optionId.intValue(); 88 } 89 90 private String queryKey; 91 92 96 public String getQueryKey() 97 { 98 return queryKey == null ? "" : queryKey; 99 } 100 101 105 public void setQueryKey(String newQueryKey) 106 { 107 this.queryKey = newQueryKey; 108 } 109 } 110 | Popular Tags |