Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 19 20 package org.efs.openreports.objects; 21 22 import java.io.Serializable ; 23 24 public class ReportAlert implements Serializable  25 { 26 private static final long serialVersionUID = 6594082161499885218L; 27 28 public static final String OPERATOR_EQUAL = "="; 29 public static final String OPERATOR_GREATER = ">"; 30 public static final String OPERATOR_LESS = "<"; 31 32 private Integer id; 33 private String name; 34 private String description; 35 private String query; 36 37 private ReportDataSource dataSource; 38 39 public ReportAlert() 40 { 41 } 42 43 public void setId(Integer id) 44 { 45 this.id = id; 46 } 47 48 public String toString() 49 { 50 return name; 51 } 52 53 public String getDescription() 54 { 55 return description; 56 } 57 58 public Integer getId() 59 { 60 return id; 61 } 62 63 public String getName() 64 { 65 return name; 66 } 67 68 public void setDescription(String description) 69 { 70 this.description = description; 71 } 72 73 public void setName(String name) 74 { 75 this.name = name; 76 } 77 78 public int compareTo(Object object) 79 { 80 ReportAlert reportChart = (ReportAlert) object; 81 return name.compareTo(reportChart.getName()); 82 } 83 84 public ReportDataSource getDataSource() 85 { 86 return dataSource; 87 } 88 89 public void setDataSource(ReportDataSource dataSource) 90 { 91 this.dataSource = dataSource; 92 } 93 94 public String getQuery() 95 { 96 return query; 97 } 98 99 public void setQuery(String query) 100 { 101 this.query = query; 102 } 103 104 public boolean equals(Object o) 105 { 106 ReportAlert alert = (ReportAlert) o; 107 return id.equals(alert.getId()); 108 } 109 }
| Popular Tags
|