1 21 22 package com.rift.coad.daemon.timer; 23 24 import java.io.Serializable ; 26 27 32 public class TimerEvent implements Serializable { 33 34 private int id = 0; 36 private String jndi = null; 37 private Serializable event = null; 38 private int month = -1; 39 private int day = -1; 40 private int hour = -1; 41 private int minute = -1; 42 private boolean recure = false; 43 44 45 48 public TimerEvent() { 49 } 50 51 52 64 public TimerEvent(int id, String jndi, Serializable event, int month, 65 int day, int hour, int minute, boolean recure) { 66 this.id = id; 67 this.jndi = jndi; 68 this.event = event; 69 this.month = month; 70 this.day = day; 71 this.hour = hour; 72 this.minute = minute; 73 this.recure = recure; 74 } 75 76 77 82 public int getId() { 83 return id; 84 } 85 86 87 92 public void setId(int id) { 93 this.id = id; 94 } 95 96 97 102 public String getJndi() { 103 return jndi; 104 } 105 106 107 112 public void setJndi(String jndi) { 113 this.jndi = jndi; 114 } 115 116 117 123 public Serializable getEvent() { 124 return event; 125 } 126 127 128 133 public void setEvent(Serializable event) { 134 this.event = event; 135 } 136 137 138 143 public int getMonth() { 144 return month; 145 } 146 147 152 public void setMonth(int month) { 153 this.month = month; 154 } 155 156 161 public int getDay() { 162 return day; 163 } 164 165 170 public void setDay(int day) { 171 this.day = day; 172 } 173 174 179 public int getHour() { 180 return hour; 181 } 182 183 188 public void setHour(int hour) { 189 this.hour = hour; 190 } 191 192 197 public int getMinute() { 198 return minute; 199 } 200 201 206 public void setMinute(int minute) { 207 this.minute = minute; 208 } 209 210 211 216 public boolean getRecure() { 217 return recure; 218 } 219 220 221 226 public void setRecure(boolean recure) { 227 this.recure = recure; 228 } 229 } 230 | Popular Tags |