1 | |
2 | package de.uka.ipd.sdq.sensorframework.entities.base; |
3 | @javax.persistence.Entity |
4 | |
5 | @javax.persistence.Table(name="MEASUREMENT") |
6 | |
7 | public abstract class AbstractMeasurement |
8 | |
9 | implements |
10 | de.uka.ipd.sdq.sensorframework.entities.Measurement |
11 | |
12 | { |
13 | |
14 | protected transient de.uka.ipd.sdq.sensorframework.entities.dao.IDAOFactory myDAOFactory = null; |
15 | public AbstractMeasurement(de.uka.ipd.sdq.sensorframework.entities.dao.IDAOFactory myFactory) { |
16 | this.myDAOFactory = myFactory; |
17 | } |
18 | |
19 | |
20 | /* Getter and Setter for Properties with cardinality 0..1 or 1 which are not a composition */ |
21 | |
22 | |
23 | @javax.persistence.Id |
24 | @javax.persistence.Column(name="MEASUREMENTID") |
25 | @javax.persistence.GeneratedValue(strategy=javax.persistence.GenerationType.IDENTITY) |
26 | |
27 | private |
28 | long |
29 | m_measurementID; |
30 | public |
31 | |
32 | long |
33 | getMeasurementID() |
34 | { |
35 | return m_measurementID; |
36 | } |
37 | public |
38 | void setMeasurementID( |
39 | long |
40 | value) |
41 | { |
42 | this.m_measurementID = value; |
43 | } |
44 | ; |
45 | |
46 | |
47 | @javax.persistence.Column(name="EVENTTIME") |
48 | |
49 | |
50 | private |
51 | double |
52 | m_eventTime; |
53 | public |
54 | |
55 | double |
56 | getEventTime() |
57 | { |
58 | return m_eventTime; |
59 | } |
60 | public |
61 | void setEventTime( |
62 | double |
63 | value) |
64 | { |
65 | this.m_eventTime = value; |
66 | } |
67 | |
68 | |
69 | /* Getter and Setter for Properties with cardinality 0..1 or 1 which are a composition */ |
70 | |
71 | |
72 | /* Getter and Setter for Properties with cardinality 0..* which are not a composition */ |
73 | |
74 | |
75 | /* Getter and Setter for Properties with cardinality 0..* which are a composition */ |
76 | |
77 | |
78 | /* Abstract Operations */ |
79 | |
80 | } |
81 | |