/*-
* ============LICENSE_START=======================================================
- * OPENECOMP - MSO
+ * ONAP - SO
* ================================================================================
* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+import java.io.Serializable;
import java.sql.Timestamp;
import java.text.DateFormat;
import org.openecomp.mso.db.catalog.utils.MavenLikeVersioning;
-public class VfModule extends MavenLikeVersioning {
+public class VfModule extends MavenLikeVersioning implements Serializable {
- private int id;
- private Integer vnfResourceId;
- private String type;
- private String modelName;
+ private static final long serialVersionUID = 768026109321305392L;
+
+ private String modelInvariantUUID = null;
+ private String modelName = null;
+ private String modelVersion = null;
+ private String description = null;
private int isBase;
- private Integer templateId;
- private Integer environmentId;
- private Integer volTemplateId;
- private Integer volEnvironmentId;
- private String description;
- private String asdcUuid;
- private Timestamp created;
- private String modelInvariantUuid;
- private String modelVersion;
-
+ private String heatTemplateArtifactUUId = null;
+ private String volHeatTemplateArtifactUUId = null;
+ private Timestamp created = null;
+ private String modelUUID = null;
+ private String vnfResourceModelUUId = null;
+
public VfModule() {
super();
}
-
- public int getId(){
- return this.id;
- }
- public void setId(int id) {
- this.id = id;
- }
-
- public Integer getVnfResourceId() {
- return this.vnfResourceId;
+
+ public String getVnfResourceModelUUId() {
+ return this.vnfResourceModelUUId;
}
- public void setVnfResourceId(Integer vnfResourceId) {
- this.vnfResourceId = vnfResourceId;
+
+ public void setVnfResourceModelUUId(String vnfResourceModelUUId) {
+ this.vnfResourceModelUUId = vnfResourceModelUUId;
}
-
+
public String getModelName() {
return this.modelName;
}
+
public void setModelName(String modelName) {
this.modelName = modelName;
}
-
- public String getType() {
- return type;
- }
-
- public void setType(String type) {
- this.type = type;
- }
public int getIsBase() {
return this.isBase;
}
+
public void setIsBase(int isBase) {
this.isBase = isBase;
}
+
public boolean isBase() {
if (this.isBase == 0) {
return false;
return true;
}
}
-
- public Integer getTemplateId() {
- return this.templateId;
- }
- public void setTemplateId(Integer templateId) {
- this.templateId = templateId;
- }
-
- public Integer getEnvironmentId() {
- return this.environmentId;
- }
- public void setEnvironmentId(Integer environmentId) {
- this.environmentId = environmentId;
- }
- public Integer getVolTemplateId() {
- return this.volTemplateId;
- }
- public void setVolTemplateId(Integer volTemplateId) {
- this.volTemplateId = volTemplateId;
+ public String getHeatTemplateArtifactUUId() {
+ return this.heatTemplateArtifactUUId;
}
-
- public Integer getVolEnvironmentId() {
- return this.volEnvironmentId;
- }
- public void setVolEnvironmentId(Integer volEnvironmentId) {
- this.volEnvironmentId = volEnvironmentId;
+
+ public void setHeatTemplateArtifactUUId(String heatTemplateArtifactUUId) {
+ this.heatTemplateArtifactUUId = heatTemplateArtifactUUId;
}
-
+
public String getDescription() {
return this.description;
}
+
public void setDescription(String description) {
this.description = description;
}
-
- public String getAsdcUuid() {
- return asdcUuid;
- }
- public void setAsdcUuid(String asdcUuidp) {
- this.asdcUuid = asdcUuidp;
- }
-
public Timestamp getCreated() {
return created;
}
public void setCreated(Timestamp created) {
this.created = created;
}
+
public String getModelInvariantUuid() {
- return this.modelInvariantUuid;
+ return this.modelInvariantUUID;
}
public void setModelInvariantUuid(String modelInvariantUuid) {
- this.modelInvariantUuid = modelInvariantUuid;
+ this.modelInvariantUUID = modelInvariantUuid;
+ }
+ public String getModelInvariantUUID() {
+ return this.modelInvariantUUID;
+ }
+ public void setModelInvariantUUID(String modelInvariantUuid) {
+ this.modelInvariantUUID = modelInvariantUuid;
}
+ public String getVolHeatTemplateArtifactUUId() {
+ return this.volHeatTemplateArtifactUUId;
+ }
+ public void setVolHeatTemplateArtifactUUId(String volHeatTemplateArtifactUUId) {
+ this.volHeatTemplateArtifactUUId = volHeatTemplateArtifactUUId;
+ }
+
+ public String getModelUUID() {
+ return modelUUID;
+ }
+
+ public void setModelUUID(String modelUUID) {
+ this.modelUUID = modelUUID;
+ }
+
public String getModelVersion() {
- return this.modelVersion;
+ return modelVersion;
}
+
public void setModelVersion(String modelVersion) {
this.modelVersion = modelVersion;
}
-
- @Override
+
+ @Override
public String toString () {
- StringBuffer buf = new StringBuffer();
-
- buf.append("VF=");
- buf.append(this.type);
- buf.append(",modelName=");
+ StringBuilder buf = new StringBuilder();
+
+ buf.append("VFModule:");
+ buf.append("modelName=");
buf.append(modelName);
- buf.append(",version=");
- buf.append(version);
- buf.append(",id=");
- buf.append(this.id);
- buf.append(",vnfResourceId=");
- buf.append(this.vnfResourceId);
- buf.append(",templateId=");
- buf.append(this.templateId);
- buf.append(",envtId=");
- buf.append(this.environmentId);
- buf.append(",volTemplateId=");
- buf.append(this.volTemplateId);
- buf.append(",volEnvtId=");
- buf.append(this.volEnvironmentId);
+ buf.append(",modelVersion=");
+ buf.append(modelVersion);
+ buf.append(",vnfResourceModelUUId=");
+ buf.append(this.vnfResourceModelUUId);
+ buf.append(",heatTemplateArtifactUUId=");
+ buf.append(this.heatTemplateArtifactUUId);
buf.append(", description=");
buf.append(this.description);
- buf.append(",asdcUuid=");
- buf.append(asdcUuid);
- buf.append(",modelVersion=");
- buf.append(this.modelVersion);
-
+ buf.append(",volHeatTemplateArtifactUUId=");
+ buf.append(this.volHeatTemplateArtifactUUId);
+ buf.append(",isBase=");
+ buf.append(this.isBase);
+ buf.append(",modelInvariantUUID=");
+ buf.append(this.modelInvariantUUID);
+ buf.append(",modelUUID=");
+ buf.append(this.modelUUID);
+
if (this.created != null) {
buf.append (",created=");
buf.append (DateFormat.getInstance().format(this.created));
}
+
return buf.toString();
}
-
+
}