00001
00025 package org.openmobileis.examples.mycrm.data;
00026
00027 import java.io.Serializable;
00028 import java.util.Date;
00029
00030 public final class Report implements Serializable {
00031
00032
00033 static final long serialVersionUID = 5521257935120563452L;
00034
00035
00036 public static final String REPORT_ACTION_LABEL_CATEGORY = "4";
00037
00038 private String id;
00039 private Date reportDate;
00040 private String description;
00041 private int action;
00042 private String terminalUserId;
00043
00044 public Report(String id) {
00045 super();
00046 this.id = id;
00047 this.reportDate = new Date();
00048 }
00049
00050 public int getAction() {
00051 return action;
00052 }
00053
00054 public void setAction(int action) {
00055 this.action = action;
00056 }
00057
00058 public String getDescription() {
00059 return description;
00060 }
00061
00062 public void setDescription(String description) {
00063 this.description = description;
00064 }
00065
00066 public Date getReportDate() {
00067 return reportDate;
00068 }
00069
00070 public void setReportDate(Date reportDate) {
00071 this.reportDate = reportDate;
00072 }
00073
00074 public String getId() {
00075 return id;
00076 }
00077
00078 public boolean equals(Object obj) {
00079 if (this.id.equals(((Report)obj).id)) {
00080 return true;
00081 }
00082 return false;
00083 }
00084
00085 public int hashCode() {
00086 return this.id.hashCode();
00087 }
00088
00089 public String getTerminalUserId() {
00090 return terminalUserId;
00091 }
00092
00093 public void setTerminalUserId(String terminalUserId) {
00094 this.terminalUserId = terminalUserId;
00095 }
00096
00097 }