1 | |
2 | package de.uka.ipd.sdq.sensorframework.entities.base; |
3 | @javax.persistence.Entity |
4 | |
5 | @javax.persistence.Table(name="STATE") |
6 | |
7 | public abstract class AbstractState |
8 | |
9 | implements |
10 | de.uka.ipd.sdq.sensorframework.entities.State |
11 | |
12 | { |
13 | |
14 | protected transient de.uka.ipd.sdq.sensorframework.entities.dao.IDAOFactory myDAOFactory = null; |
15 | public AbstractState(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="STATEID") |
25 | @javax.persistence.GeneratedValue(strategy=javax.persistence.GenerationType.IDENTITY) |
26 | |
27 | private |
28 | long |
29 | m_stateID; |
30 | public |
31 | |
32 | long |
33 | getStateID() |
34 | { |
35 | return m_stateID; |
36 | } |
37 | public |
38 | void setStateID( |
39 | long |
40 | value) |
41 | { |
42 | this.m_stateID = value; |
43 | } |
44 | ; |
45 | |
46 | |
47 | @javax.persistence.Column(name="STATELITERAL") |
48 | |
49 | |
50 | private |
51 | String |
52 | m_stateLiteral; |
53 | public |
54 | |
55 | String |
56 | getStateLiteral() |
57 | { |
58 | return m_stateLiteral; |
59 | } |
60 | public |
61 | void setStateLiteral( |
62 | String |
63 | value) |
64 | { |
65 | this.m_stateLiteral = 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 | |