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 ModuleIssueType 51 implements java.io.Serializable , 52 Retrievable 53 { 54 private Integer moduleId; 55 private Integer issueTypeId; 56 private String queryKey; 57 58 62 public Integer getModuleId() 63 { 64 return moduleId; 65 } 66 67 71 public void setModuleId(Integer newModuleId) 72 { 73 this.moduleId = newModuleId; 74 } 75 76 80 public Integer getIssueTypeId() 81 { 82 return issueTypeId; 83 } 84 85 89 public void setIssueTypeId(Integer newIssueTypeId) 90 { 91 this.issueTypeId = newIssueTypeId; 92 } 93 94 public boolean equals(Object obj) 95 { 96 boolean result = obj == this; 97 if (!result && obj instanceof ModuleIssueType) 98 { 99 ModuleIssueType mit = (ModuleIssueType)obj; 100 result = ObjectUtils.equals(moduleId, mit.getModuleId()) 101 && ObjectUtils.equals(issueTypeId, mit.getIssueTypeId()); 102 } 103 return result; 104 } 105 106 public int hashCode() 107 { 108 int result = moduleId == null ? 0 : moduleId.intValue(); 109 if (issueTypeId != null) 110 { 111 result += issueTypeId.intValue(); 112 } 113 return result; 114 } 115 116 120 public String getQueryKey() 121 { 122 return queryKey == null ? "" : queryKey; 123 } 124 125 129 public void setQueryKey(String newQueryKey) 130 { 131 this.queryKey = newQueryKey; 132 } 133 } 134 | Popular Tags |