Port to java 17
[ccsdk/apps.git] / ms / neng / src / main / java / org / onap / ccsdk / apps / ms / neng / persistence / entity / ExternalInterface.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : CCSDK.apps
4  * ================================================================================
5  * Copyright (C) 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.ccsdk.apps.ms.neng.persistence.entity;
22
23 import java.io.Serializable;
24 import java.sql.Timestamp;
25 import jakarta.persistence.Column;
26 import jakarta.persistence.Entity;
27 import jakarta.persistence.Id;
28 import jakarta.persistence.Table;
29
30 /**
31  * Entity representing the parameters and configuration of an external system/sub-system/application interface
32  * from this micro-service.
33  */
34 @Entity
35 @Table(name = "EXTERNAL_INTERFACE")
36 public class ExternalInterface implements Serializable {
37
38     private static final long serialVersionUID = 1L;
39
40     Integer externalInteraceId;
41     String system;
42     String param;
43     String urlSuffix;
44     Timestamp createdTime;
45     String createdBy;
46     Timestamp lastUpdatedTime;
47     String lastUpdatedBy;
48
49     /**
50      * Primary key for this entity.
51      */
52     @Id
53     @Column(name = "EXTERNAL_INTERFACE_ID")
54     public Integer getExternalInteraceId() {
55         return externalInteraceId;
56     }
57
58     public void setExternalInteraceId(Integer externalInteraceId) {
59         this.externalInteraceId = externalInteraceId;
60     }
61
62     /**
63      * Name of the interfacing system.
64      */
65     @Column(name = "SYSTEM")
66     public String getSystem() {
67         return system;
68     }
69
70     public void setSystem(String system) {
71         this.system = system;
72     }
73
74     /**
75      * A parameter related to the interfacing system.
76      */
77     @Column(name = "PARAM")
78     public String getParam() {
79         return param;
80     }
81
82     public void setParam(String param) {
83         this.param = param;
84     }
85
86     /**
87      * URL suffix for the interfacing system.
88      */
89     @Column(name = "URL_SUFFIX")
90     public String getUrlSuffix() {
91         return urlSuffix;
92     }
93
94     public void setUrlSuffix(String urlSuffix) {
95         this.urlSuffix = urlSuffix;
96     }
97
98     /**
99      * Time-stamp for this entity creation.
100      */
101     @Column(name = "CREATED_TIME")
102     public Timestamp getCreatedTime() {
103         return createdTime;
104     }
105
106     public void setCreatedTime(Timestamp createdTime) {
107         this.createdTime = createdTime;
108     }
109
110     /**
111      * Identifier for the entity creation.
112      */
113     @Column(name = "CREATED_BY")
114     public String getCreatedBy() {
115         return createdBy;
116     }
117
118     public void setCreatedBy(String createdBy) {
119         this.createdBy = createdBy;
120     }
121
122     /**
123      * Time-stamp for this entity update.
124      */
125     @Column(name = "LAST_UPDATED_TIME")
126     public Timestamp getLastUpdatedTime() {
127         return lastUpdatedTime;
128     }
129
130     public void setLastUpdatedTime(Timestamp lastUpdatedTime) {
131         this.lastUpdatedTime = lastUpdatedTime;
132     }
133
134     /**
135      * Identifier for this entity update.
136      */
137     @Column(name = "LAST_UPDATED_BY")
138     public String getLastUpdatedBy() {
139         return lastUpdatedBy;
140     }
141
142     public void setLastUpdatedBy(String lastUpdatedBy) {
143         this.lastUpdatedBy = lastUpdatedBy;
144     }
145 }