2 * ============LICENSE_START=======================================================
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
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.openecomp.mso.db.catalog.beans;
23 import java.io.Serializable;
24 import java.sql.Timestamp;
25 import java.text.DateFormat;
27 import org.openecomp.mso.db.catalog.utils.MavenLikeVersioning;
29 public class HeatFiles extends MavenLikeVersioning implements Serializable {
31 private static final long serialVersionUID = 768026109321305392L;
33 private String artifactUuid = null;
34 private String description = null;
35 private String fileName = null;
36 private String fileBody = null;
37 private Timestamp created = null;
38 private String version = null;
39 private String artifactChecksum = null;
42 public String getArtifactUuid() {
43 return this.artifactUuid;
45 public void setArtifactUuid(String artifactUuid) {
46 this.artifactUuid = artifactUuid;
49 public String getDescription() {
50 return this.description;
52 public void setDescription(String description) {
53 this.description = description;
56 public String getFileName() {
59 public void setFileName(String fileName) {
60 this.fileName = fileName;
63 public String getFileBody() {
66 public void setFileBody(String fileBody) {
67 this.fileBody = fileBody;
70 public Timestamp getCreated() {
74 public void setCreated(Timestamp created) {
75 this.created = created;
78 public String getAsdcUuid() {
79 return this.artifactUuid;
81 public void setAsdcUuid(String artifactUuid) {
82 this.artifactUuid = artifactUuid;
86 public String getVersion() {
91 public void setVersion(String version) {
92 this.version = version;
95 public String getArtifactChecksum() {
96 return artifactChecksum;
98 public void setArtifactChecksum(String artifactChecksum) {
99 this.artifactChecksum = artifactChecksum;
103 public String toString () {
104 StringBuilder sb = new StringBuilder();
105 sb.append("artifactUuid=").append(this.artifactUuid);
106 if (this.description == null) {
107 sb.append(", description=null");
109 sb.append(", description=").append(this.description);
111 if (this.fileName == null) {
112 sb.append(", fileName=null");
114 sb.append(",fileName=").append(this.fileName);
116 if (this.fileBody == null) {
117 sb.append(", fileBody=null");
119 sb.append(",fileBody=").append(this.fileBody);
121 sb.append(", artifactChecksum=").append(this.artifactChecksum);
122 if (created != null) {
123 sb.append (",created=");
124 sb.append (DateFormat.getInstance().format(created));
126 return sb.toString();