Merge "Remove trafficgenerator checkstyle suppressions"
[policy/drools-applications.git] / controlloop / common / eventmanager / src / main / java / org / onap / policy / controlloop / eventmanager / OperationsHistoryDbEntry.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * controlloop
4  * ================================================================================
5  * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.policy.controlloop.eventmanager;
22
23 import java.io.Serializable;
24 import java.sql.Timestamp;
25
26 import javax.persistence.Column;
27 import javax.persistence.Entity;
28 import javax.persistence.GeneratedValue;
29 import javax.persistence.Id;
30 import javax.persistence.Table;
31
32 @Entity
33 @Table(name = "operationshistory10")
34 public class OperationsHistoryDbEntry implements Serializable {
35     private static final long serialVersionUID = 1L;
36
37     @Id
38     @GeneratedValue
39     @Column(name = "ROWID")
40     public long rowid;
41
42     @Column(name = "CLNAME")
43     private String closedLoopName;
44
45     private String requestId;
46     private String actor;
47     private String operation;
48     private String target;
49     private Timestamp starttime;
50     private Timestamp endtime;
51     private String subrequestId;
52     private String outcome;
53     private String message;
54
55     public long getRowid() {
56         return rowid;
57     }
58
59     public void setRowid(long rowid) {
60         this.rowid = rowid;
61     }
62
63     public String getClosedLoopName() {
64         return closedLoopName;
65     }
66
67     public void setClosedLoopName(String closedLoopName) {
68         this.closedLoopName = closedLoopName;
69     }
70
71     public String getRequestId() {
72         return requestId;
73     }
74
75     public void setRequestId(String requestId) {
76         this.requestId = requestId;
77     }
78
79     public String getActor() {
80         return actor;
81     }
82
83     public void setActor(String actor) {
84         this.actor = actor;
85     }
86
87     public String getOperation() {
88         return operation;
89     }
90
91     public void setOperation(String operation) {
92         this.operation = operation;
93     }
94
95     public String getTarget() {
96         return target;
97     }
98
99     public void setTarget(String target) {
100         this.target = target;
101     }
102
103     public Timestamp getStarttime() {
104         return starttime;
105     }
106
107     public void setStarttime(Timestamp starttime) {
108         this.starttime = starttime;
109     }
110
111     public Timestamp getEndtime() {
112         return endtime;
113     }
114
115     public void setEndtime(Timestamp endtime) {
116         this.endtime = endtime;
117     }
118
119     public String getSubrequestId() {
120         return subrequestId;
121     }
122
123     public void setSubrequestId(String subrequestId) {
124         this.subrequestId = subrequestId;
125     }
126
127     public String getOutcome() {
128         return outcome;
129     }
130
131     public void setOutcome(String outcome) {
132         this.outcome = outcome;
133     }
134
135     public String getMessage() {
136         return message;
137     }
138
139     public void setMessage(String message) {
140         this.message = message;
141     }
142 }
143
144