1 package at.meikel.dmrl.server.persistence;
2
3 import java.io.Serializable;
4 import java.util.Date;
5
6 import javax.persistence.Entity;
7 import javax.persistence.GeneratedValue;
8 import javax.persistence.GenerationType;
9 import javax.persistence.Id;
10 import javax.persistence.Lob;
11
12 @Entity
13 public class ExcelSheet implements Serializable {
14
15
16
17
18 private static final long serialVersionUID = 1L;
19
20 private Integer id;
21 private Date timestamp;
22 private String url;
23 private byte[] data;
24 private STATE state;
25
26 public static enum STATE {
27 OK, CORRUPTED
28 }
29
30 public ExcelSheet() {
31 }
32
33 @Id
34 @GeneratedValue(strategy = GenerationType.AUTO)
35 public Integer getId() {
36 return id;
37 }
38
39 public void setId(Integer id) {
40 this.id = id;
41 }
42
43 public Date getTimestamp() {
44 return timestamp;
45 }
46
47 public void setTimestamp(Date timestamp) {
48 this.timestamp = timestamp;
49 }
50
51 public String getUrl() {
52 return url;
53 }
54
55 public void setUrl(String url) {
56 this.url = url;
57 }
58
59 @Lob
60 public byte[] getData() {
61 return data;
62 }
63
64 public void setData(byte[] data) {
65 this.data = data;
66 }
67
68 public STATE getState() {
69 return state;
70 }
71
72 public void setState(STATE state) {
73 this.state = state;
74 }
75 }