1
2
3
4
5
6 package fr.ifremer.quadrige3.core.dao.administration.strategy;
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28 import fr.ifremer.quadrige3.core.dao.administration.user.Department;
29 import fr.ifremer.quadrige3.core.dao.referential.AnalysisInstrument;
30 import java.io.Serializable;
31 import java.sql.Timestamp;
32
33
34
35
36
37 public abstract class PmfmAppliedStrategy
38 implements Serializable, Comparable<PmfmAppliedStrategy>
39 {
40
41
42
43 private static final long serialVersionUID = -1991543001677708973L;
44
45 private PmfmAppliedStrategyPK pmfmAppliedStrategyPk;
46
47
48
49
50
51 public PmfmAppliedStrategyPK getPmfmAppliedStrategyPk()
52 {
53 return this.pmfmAppliedStrategyPk;
54 }
55
56
57
58
59
60 public void setPmfmAppliedStrategyPk(PmfmAppliedStrategyPK pmfmAppliedStrategyPkIn) {
61 this.pmfmAppliedStrategyPk = pmfmAppliedStrategyPkIn;
62 }
63
64
65 private Timestamp updateDt;
66
67
68
69
70
71 public Timestamp getUpdateDt()
72 {
73 return this.updateDt;
74 }
75
76
77
78
79
80 public void setUpdateDt(Timestamp updateDtIn)
81 {
82 this.updateDt = updateDtIn;
83 }
84
85
86 private Department department;
87
88
89
90
91
92 public Department getDepartment()
93 {
94 return this.department;
95 }
96
97
98
99
100
101 public void setDepartment(Department departmentIn)
102 {
103 this.department = departmentIn;
104 }
105
106 private AnalysisInstrument analysisInstrument;
107
108
109
110
111
112 public AnalysisInstrument getAnalysisInstrument()
113 {
114 return this.analysisInstrument;
115 }
116
117
118
119
120
121 public void setAnalysisInstrument(AnalysisInstrument analysisInstrumentIn)
122 {
123 this.analysisInstrument = analysisInstrumentIn;
124 }
125
126 private PmfmStrategy pmfmStrategy;
127
128
129
130
131
132
133 public PmfmStrategy getPmfmStrategy()
134 {
135 return this.pmfmStrategy;
136 }
137
138
139
140
141
142
143 public void setPmfmStrategy(PmfmStrategy pmfmStrategyIn)
144 {
145 this.pmfmStrategy = pmfmStrategyIn;
146 }
147
148 private AppliedStrategy appliedStrategy;
149
150
151
152
153
154 public AppliedStrategy getAppliedStrategy()
155 {
156 return this.appliedStrategy;
157 }
158
159
160
161
162
163 public void setAppliedStrategy(AppliedStrategy appliedStrategyIn)
164 {
165 this.appliedStrategy = appliedStrategyIn;
166 }
167
168
169
170
171
172
173
174 @Override
175 public boolean equals(Object object)
176 {
177 return super.equals(object);
178 }
179
180
181
182
183
184
185 @Override
186 public int hashCode()
187 {
188 return super.hashCode();
189 }
190
191
192
193
194 public static final class Factory
195 {
196
197
198
199
200 public static PmfmAppliedStrategy newInstance()
201 {
202 return new PmfmAppliedStrategyImpl();
203 }
204
205
206
207
208
209
210
211
212 public static PmfmAppliedStrategy newInstance(PmfmStrategy pmfmStrategy, AppliedStrategy appliedStrategy)
213 {
214 final PmfmAppliedStrategy entity = new PmfmAppliedStrategyImpl();
215 entity.setPmfmStrategy(pmfmStrategy);
216 entity.setAppliedStrategy(appliedStrategy);
217 return entity;
218 }
219
220
221
222
223
224
225
226
227
228
229
230 public static PmfmAppliedStrategy newInstance(Timestamp updateDt, Department department, AnalysisInstrument analysisInstrument, PmfmStrategy pmfmStrategy, AppliedStrategy appliedStrategy)
231 {
232 final PmfmAppliedStrategy entity = new PmfmAppliedStrategyImpl();
233 entity.setUpdateDt(updateDt);
234 entity.setDepartment(department);
235 entity.setAnalysisInstrument(analysisInstrument);
236 entity.setPmfmStrategy(pmfmStrategy);
237 entity.setAppliedStrategy(appliedStrategy);
238 return entity;
239 }
240 }
241
242
243
244
245 public int compareTo(PmfmAppliedStrategy o)
246 {
247 int cmp = 0;
248 if (this.getPmfmAppliedStrategyPk() != null)
249 {
250 cmp = this.getPmfmAppliedStrategyPk().compareTo(o.getPmfmAppliedStrategyPk());
251 }
252 if (this.getUpdateDt() != null)
253 {
254 cmp = (cmp != 0 ? cmp : this.getUpdateDt().compareTo(o.getUpdateDt()));
255 }
256 return cmp;
257 }
258
259
260 }