2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.ccsdk.apps.ms.neng.persistence.entity;
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;
31 * Entity representing the parameters and configuration of an external system/sub-system/application interface
32 * from this micro-service.
35 @Table(name = "EXTERNAL_INTERFACE")
36 public class ExternalInterface implements Serializable {
38 private static final long serialVersionUID = 1L;
40 Integer externalInteraceId;
44 Timestamp createdTime;
46 Timestamp lastUpdatedTime;
50 * Primary key for this entity.
53 @Column(name = "EXTERNAL_INTERFACE_ID")
54 public Integer getExternalInteraceId() {
55 return externalInteraceId;
58 public void setExternalInteraceId(Integer externalInteraceId) {
59 this.externalInteraceId = externalInteraceId;
63 * Name of the interfacing system.
65 @Column(name = "SYSTEM")
66 public String getSystem() {
70 public void setSystem(String system) {
75 * A parameter related to the interfacing system.
77 @Column(name = "PARAM")
78 public String getParam() {
82 public void setParam(String param) {
87 * URL suffix for the interfacing system.
89 @Column(name = "URL_SUFFIX")
90 public String getUrlSuffix() {
94 public void setUrlSuffix(String urlSuffix) {
95 this.urlSuffix = urlSuffix;
99 * Time-stamp for this entity creation.
101 @Column(name = "CREATED_TIME")
102 public Timestamp getCreatedTime() {
106 public void setCreatedTime(Timestamp createdTime) {
107 this.createdTime = createdTime;
111 * Identifier for the entity creation.
113 @Column(name = "CREATED_BY")
114 public String getCreatedBy() {
118 public void setCreatedBy(String createdBy) {
119 this.createdBy = createdBy;
123 * Time-stamp for this entity update.
125 @Column(name = "LAST_UPDATED_TIME")
126 public Timestamp getLastUpdatedTime() {
127 return lastUpdatedTime;
130 public void setLastUpdatedTime(Timestamp lastUpdatedTime) {
131 this.lastUpdatedTime = lastUpdatedTime;
135 * Identifier for this entity update.
137 @Column(name = "LAST_UPDATED_BY")
138 public String getLastUpdatedBy() {
139 return lastUpdatedBy;
142 public void setLastUpdatedBy(String lastUpdatedBy) {
143 this.lastUpdatedBy = lastUpdatedBy;