dc8aaadea259aac317da7fa3ca31d1ef13f492a6
[so.git] / mso-catalog-db / src / main / java / org / openecomp / mso / db / catalog / beans / NetworkResourceCustomization.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * OPENECOMP - MSO
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 package org.openecomp.mso.db.catalog.beans;
21
22 import java.sql.Timestamp;
23
24 import org.openecomp.mso.db.catalog.utils.MavenLikeVersioning;
25
26 public class NetworkResourceCustomization extends MavenLikeVersioning{
27
28         private String modelCustomizationUuid;
29         private String modelName;
30         private String modelInstanceName;
31         private String modelUuid;
32         private String modelVersion;
33         private String modelInvariantUuid;
34         private int networkResourceId = 0;
35         private Timestamp created;
36
37         // These fields are not in the table directly - but I'm adding them here for storage in the objects we're dealing with
38         private NetworkResource networkResource = null;
39         private String networkType = null;
40
41         public NetworkResourceCustomization() {
42                 super();
43         }
44
45         public int getNetworkResourceId() {
46                 return this.networkResourceId;
47         }
48         public void setNetworkResourceId(int networkResourceId) {
49                 this.networkResourceId = networkResourceId;
50         }
51
52         public String getModelUuid() {
53                 return this.modelUuid;
54         }
55         public void setModelUuid(String modelUuid) {
56                 this.modelUuid = modelUuid;
57         }
58
59         public String getModelInvariantUuid() {
60                 return this.modelInvariantUuid;
61         }
62         public void setModelInvariantUuid(String modelInvariantUuid) {
63                 this.modelInvariantUuid = modelInvariantUuid;
64         }
65
66         public String getModelVersion() {
67                 return this.modelVersion;
68         }
69         public void setModelVersion(String modelVersion) {
70                 this.modelVersion = modelVersion;
71         }
72
73         public String getModelCustomizationUuid() {
74                 return this.modelCustomizationUuid;
75         }
76         public void setModelCustomizationUuid(String modelCustomizationUuid) {
77                 this.modelCustomizationUuid = modelCustomizationUuid;
78         }
79
80         public String getModelInstanceName() {
81                 return  this.modelInstanceName;
82         }
83         public void setModelInstanceName(String modelInstanceName) {
84                 this.modelInstanceName = modelInstanceName;
85         }
86
87         public String getModelName() {
88                 return  this.modelName;
89         }
90         public void setModelName(String modelName) {
91                 this.modelName = modelName;
92         }
93
94         public NetworkResource getNetworkResource() {
95                 return this.networkResource;
96         }
97         public void setNetworkResource(NetworkResource networkResource) {
98                 this.networkResource = networkResource;
99         }
100
101         public String getNetworkType() {
102                 return this.networkType;
103         }
104         public void setNetworkType(String networkType) {
105                 this.networkType = networkType;
106         }
107         public Timestamp getCreated() {
108                 return this.created;
109         }
110         public void setCreated(Timestamp timestamp) {
111                 this.created = timestamp;
112         }
113
114         public String getModelInvariantId() { return "not yet implemented"; }
115
116         @Override
117         public String toString () {
118                 StringBuffer sb = new StringBuffer();
119                 sb.append("modelName=");
120                 sb.append(this.modelName);
121                 sb.append("modelUuid=");
122                 sb.append(this.modelUuid);
123                 sb.append("modelUuid=");
124                 sb.append(this.modelUuid);
125                 sb.append("modelInvariantUuid=");
126                 sb.append(this.modelInvariantUuid);
127                 sb.append("modelVersion=");
128                 sb.append(this.modelVersion);
129                 sb.append("modelCustomizationUuid=");
130                 sb.append(this.modelCustomizationUuid);
131                 sb.append("modelInstanceName=");
132                 sb.append(this.modelInstanceName);
133                 sb.append("networkResourceId=");
134                 sb.append(this.networkResourceId);
135                 sb.append("networkType=");
136                 sb.append(this.networkType);
137
138                 return sb.toString();
139         }
140
141 }