30273d377f05177029cbf95ec9973f4af31f1ed3
[policy/drools-applications.git] /
1 /*-
2  * ============LICENSE_START=======================================================
3  * controlloop
4  * ================================================================================
5  * Copyright (C) 2017 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@GeneratedValue
38         @Column(name="ROWID")
39         public long rowid;
40         
41         @Column(name="CLNAME")
42         private String closedLoopName;
43         
44         private String requestId;
45         private String actor;
46         private String operation;
47         private String target;
48         private Timestamp starttime;
49         private Timestamp endtime;
50         private String subrequestId;
51         private String outcome;
52         private String message;
53         public long getRowid() {
54                 return rowid;
55         }
56         public void setRowid(long rowid) {
57                 this.rowid = rowid;
58         }
59         public String getClosedLoopName() {
60                 return closedLoopName;
61         }
62         public void setClosedLoopName(String closedLoopName) {
63                 this.closedLoopName = closedLoopName;
64         }
65         public String getRequestId() {
66                 return requestId;
67         }
68         public void setRequestId(String requestId) {
69                 this.requestId = requestId;
70         }
71         public String getActor() {
72                 return actor;
73         }
74         public void setActor(String actor) {
75                 this.actor = actor;
76         }
77         public String getOperation() {
78                 return operation;
79         }
80         public void setOperation(String operation) {
81                 this.operation = operation;
82         }
83         public String getTarget() {
84                 return target;
85         }
86         public void setTarget(String target) {
87                 this.target = target;
88         }
89         public Timestamp getStarttime() {
90                 return starttime;
91         }
92         public void setStarttime(Timestamp starttime) {
93                 this.starttime = starttime;
94         }
95         public Timestamp getEndtime() {
96                 return endtime;
97         }
98         public void setEndtime(Timestamp endtime) {
99                 this.endtime = endtime;
100         }
101         public String getSubrequestId() {
102                 return subrequestId;
103         }
104         public void setSubrequestId(String subrequestId) {
105                 this.subrequestId = subrequestId;
106         }
107         public String getOutcome() {
108                 return outcome;
109         }
110         public void setOutcome(String outcome) {
111                 this.outcome = outcome;
112         }
113         public String getMessage() {
114                 return message;
115         }
116         public void setMessage(String message) {
117                 this.message = message;
118         }
119 }
120
121