1 24 package org.riotfamily.riot.job.persistence; 25 26 import java.util.Date ; 27 28 29 public class JobLogEntry { 30 31 public static final int INFO = 1; 32 33 public static final int ERROR = 2; 34 35 private Long id; 36 37 private JobDetail job; 38 39 private Date date; 40 41 private int priority; 42 43 private String message; 44 45 public JobLogEntry() { 46 } 47 48 public JobLogEntry(JobDetail job, String message) { 49 this(job, INFO, message); 50 } 51 52 public JobLogEntry(JobDetail job, int priority, String message) { 53 this.job = job; 54 this.priority = priority; 55 this.message = message; 56 this.date = new Date (); 57 } 58 59 public Long getId() { 60 return this.id; 61 } 62 63 public Long getJobId() { 64 return job.getId(); 65 } 66 67 public Date getDate() { 68 return this.date; 69 } 70 71 public String getMessage() { 72 return this.message; 73 } 74 75 public int getPriority() { 76 return this.priority; 77 } 78 79 } 80 | Popular Tags |