instantiate and terminate servce
[usecase-ui/server.git] / src / main / java / org / onap / usecaseui / server / bean / AlarmsHeader.java
1 /*
2  * Copyright (C) 2017 CMCC, Inc. and others. All rights reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package org.onap.usecaseui.server.bean;
17
18 import java.io.Serializable;
19 import java.util.Date;
20
21 import javax.persistence.Column;
22 import javax.persistence.Entity;
23 import javax.persistence.Id;
24 import javax.persistence.Table;
25
26
27 @Entity
28 @Table(name="alarms_commoneventheader")
29 public class AlarmsHeader implements Serializable{
30         
31         @Column(name = "version")
32         private String version;
33         
34         @Column(name = "eventName")
35         private String eventName;
36         
37         @Column(name = "domain")
38         private String domain;
39         
40         @Id
41         @Column(name = "eventId")
42         private String eventId;
43         
44         @Column(name = "eventType")
45         private String eventType;
46         
47         @Column(name = "nfcNamingCode", nullable=false)
48         private String nfcNamingCode;
49         
50         @Column(name = "nfNamingCode", nullable=false)
51         private String nfNamingCode;
52         
53         @Column(name = "sourceId")
54         private String sourceId;
55         
56         @Column(name = "sourceName")
57         private String sourceName;
58         
59         @Column(name = "reportingEntityId")
60         private String reportingEntityId;
61         
62         @Column(name = "reportingEntityName")
63         private String reportingEntityName;
64         
65         @Column(name = "priority")
66         private String priority;
67         
68         @Column(name = "startEpochMicrosec")
69         private String startEpochMicrosec;
70         
71         @Column(name = "lastEpochMicroSec")
72         private String lastEpochMicroSec;
73         
74         @Column(name = "sequence")
75         private String sequence;
76         
77         @Column(name = "faultFieldsVersion")
78         private String faultFieldsVersion;
79         
80         @Column(name = "eventServrity")
81         private String eventServrity;
82         
83         @Column(name = "eventSourceType")
84         private String eventSourceType;
85         
86         @Column(name = "eventCategory")
87         private String eventCategory;
88         
89         @Column(name = "alarmCondition")
90         private String alarmCondition;
91         
92         @Column(name = "specificProblem")
93         private String specificProblem;
94         
95         @Column(name = "vfStatus")
96         private String vfStatus;
97         
98         @Column(name = "alarmInterfaceA")
99         private String alarmInterfaceA;
100         
101         @Column(name = "status")
102         private String status;
103         
104         @Column(name = "createTime")
105         private Date createTime;
106         
107         @Column(name = "updateTime")
108         private Date updateTime;
109
110         public String getVersion() {
111                 return version;
112         }
113
114         public void setVersion(String version) {
115                 this.version = version;
116         }
117
118         public String getEventName() {
119                 return eventName;
120         }
121
122         public void setEventName(String eventName) {
123                 this.eventName = eventName;
124         }
125
126         public String getDomain() {
127                 return domain;
128         }
129
130         public void setDomain(String domain) {
131                 this.domain = domain;
132         }
133
134         public String getEventId() {
135                 return eventId;
136         }
137
138         public void setEventId(String eventId) {
139                 this.eventId = eventId;
140         }
141
142         public String getEventType() {
143                 return eventType;
144         }
145
146         public void setEventType(String eventType) {
147                 this.eventType = eventType;
148         }
149
150         public String getNfcNamingCode() {
151                 return nfcNamingCode;
152         }
153
154         public void setNfcNamingCode(String nfcNamingCode) {
155                 this.nfcNamingCode = nfcNamingCode;
156         }
157
158         public String getNfNamingCode() {
159                 return nfNamingCode;
160         }
161
162         public void setNfNamingCode(String nfNamingCode) {
163                 this.nfNamingCode = nfNamingCode;
164         }
165
166         public String getSourceId() {
167                 return sourceId;
168         }
169
170         public void setSourceId(String sourceId) {
171                 this.sourceId = sourceId;
172         }
173
174         public String getSourceName() {
175                 return sourceName;
176         }
177
178         public void setSourceName(String sourceName) {
179                 this.sourceName = sourceName;
180         }
181
182         public String getReportingEntityId() {
183                 return reportingEntityId;
184         }
185
186         public void setReportingEntityId(String reportingEntityId) {
187                 this.reportingEntityId = reportingEntityId;
188         }
189
190         public String getReportingEntityName() {
191                 return reportingEntityName;
192         }
193
194         public void setReportingEntityName(String reportingEntityName) {
195                 this.reportingEntityName = reportingEntityName;
196         }
197
198         public String getPriority() {
199                 return priority;
200         }
201
202         public void setPriority(String priority) {
203                 this.priority = priority;
204         }
205
206         public String getStartEpochMicrosec() {
207                 return startEpochMicrosec;
208         }
209
210         public void setStartEpochMicrosec(String startEpochMicrosec) {
211                 this.startEpochMicrosec = startEpochMicrosec;
212         }
213
214         public String getLastEpochMicroSec() {
215                 return lastEpochMicroSec;
216         }
217
218         public void setLastEpochMicroSec(String lastEpochMicroSec) {
219                 this.lastEpochMicroSec = lastEpochMicroSec;
220         }
221
222         public String getSequence() {
223                 return sequence;
224         }
225
226         public void setSequence(String sequence) {
227                 this.sequence = sequence;
228         }
229
230         public String getFaultFieldsVersion() {
231                 return faultFieldsVersion;
232         }
233
234         public void setFaultFieldsVersion(String faultFieldsVersion) {
235                 this.faultFieldsVersion = faultFieldsVersion;
236         }
237
238         public String getEventServrity() {
239                 return eventServrity;
240         }
241
242         public void setEventServrity(String eventServrity) {
243                 this.eventServrity = eventServrity;
244         }
245
246         public String getEventSourceType() {
247                 return eventSourceType;
248         }
249
250         public void setEventSourceType(String eventSourceType) {
251                 this.eventSourceType = eventSourceType;
252         }
253
254         public String getEventCategory() {
255                 return eventCategory;
256         }
257
258         public void setEventCategory(String eventCategory) {
259                 this.eventCategory = eventCategory;
260         }
261
262         public String getAlarmCondition() {
263                 return alarmCondition;
264         }
265
266         public void setAlarmCondition(String alarmCondition) {
267                 this.alarmCondition = alarmCondition;
268         }
269
270         public String getSpecificProblem() {
271                 return specificProblem;
272         }
273
274         public void setSpecificProblem(String specificProblem) {
275                 this.specificProblem = specificProblem;
276         }
277
278         public String getVfStatus() {
279                 return vfStatus;
280         }
281
282         public void setVfStatus(String vfStatus) {
283                 this.vfStatus = vfStatus;
284         }
285
286         public String getAlarmInterfaceA() {
287                 return alarmInterfaceA;
288         }
289
290         public void setAlarmInterfaceA(String alarmInterfaceA) {
291                 this.alarmInterfaceA = alarmInterfaceA;
292         }
293
294         public String getStatus() {
295                 return status;
296         }
297
298         public void setStatus(String status) {
299                 this.status = status;
300         }
301
302         public Date getCreateTime() {
303                 return createTime;
304         }
305
306         public void setCreateTime(Date createTime) {
307                 this.createTime = createTime;
308         }
309
310         public Date getUpdateTime() {
311                 return updateTime;
312         }
313
314         public void setUpdateTime(Date updateTime) {
315                 this.updateTime = updateTime;
316         }
317         
318         
319 }