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", query = "SELECT e FROM LastModified e "),
41 @NamedQuery(name = "LastModified.findById", query = "SELECT e FROM LastModified e WHERE e.captureAgentId = :agentId"),
42 @NamedQuery(name = "LastModified.countAll", query = "SELECT COUNT(e) FROM LastModified e ") })
43 @Table(name = "oc_scheduled_last_modified", indexes = {
44 @Index(name = "IX_oc_scheduled_last_modified_last_modified", columnList = ("last_modified")) })
45 public class LastModifiedDto {
46
47
48 @Id
49 @Column(name = "capture_agent_id", length = 255)
50 protected String captureAgentId;
51
52 @Column(name = "last_modified", nullable = false)
53 @Temporal(TemporalType.TIMESTAMP)
54 protected Date lastModifiedDate;
55
56
57
58
59 public LastModifiedDto() {
60 }
61
62
63
64
65
66
67 public String getCaptureAgentId() {
68 return captureAgentId;
69 }
70
71
72
73
74
75
76
77 public void setCaptureAgentId(String captureAgentId) {
78 this.captureAgentId = captureAgentId;
79 }
80
81
82
83
84
85
86 public Date getLastModifiedDate() {
87 return lastModifiedDate;
88 }
89
90
91
92
93
94
95
96 public void setLastModifiedDate(Date lastModifiedDate) {
97 this.lastModifiedDate = lastModifiedDate;
98 }
99
100 }