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