1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package org.opencastproject.scheduler.impl.persistence;
22
23 import java.util.Date;
24
25 import javax.persistence.Column;
26 import javax.persistence.Entity;
27 import javax.persistence.Id;
28 import javax.persistence.Index;
29 import javax.persistence.NamedQueries;
30 import javax.persistence.NamedQuery;
31 import javax.persistence.Table;
32 import javax.persistence.Temporal;
33 import javax.persistence.TemporalType;
34
35
36
37
38 @Entity(name = "LastModified")
39 @NamedQueries({
40 @NamedQuery(name = "LastModified.findAll",
41 query = "SELECT e FROM LastModified e "),
42 @NamedQuery(name = "LastModified.findById",
43 query = "SELECT e FROM LastModified e WHERE e.captureAgentId = :agentId"),
44 @NamedQuery(name = "LastModified.countAll",
45 query = "SELECT COUNT(e) FROM LastModified e ") })
46 @Table(name = "oc_scheduled_last_modified", indexes = {
47 @Index(name = "IX_oc_scheduled_last_modified_last_modified", columnList = ("last_modified")) })
48 public class LastModifiedDto {
49
50
51 @Id
52 @Column(name = "capture_agent_id", length = 255)
53 protected String captureAgentId;
54
55 @Column(name = "last_modified", nullable = false)
56 @Temporal(TemporalType.TIMESTAMP)
57 protected Date lastModifiedDate;
58
59
60
61
62 public LastModifiedDto() {
63 }
64
65
66
67
68
69
70 public String getCaptureAgentId() {
71 return captureAgentId;
72 }
73
74
75
76
77
78
79
80 public void setCaptureAgentId(String captureAgentId) {
81 this.captureAgentId = captureAgentId;
82 }
83
84
85
86
87
88
89 public Date getLastModifiedDate() {
90 return lastModifiedDate;
91 }
92
93
94
95
96
97
98
99 public void setLastModifiedDate(Date lastModifiedDate) {
100 this.lastModifiedDate = lastModifiedDate;
101 }
102
103 }