Merge "Reorder modifiers"
[so.git] / mso-catalog-db / src / main / java / org / openecomp / mso / db / catalog / beans / HeatFiles.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
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
21 package org.openecomp.mso.db.catalog.beans;
22
23 import java.io.Serializable;
24 import java.sql.Timestamp;
25 import java.text.DateFormat;
26
27 import org.openecomp.mso.db.catalog.utils.MavenLikeVersioning;
28
29 public class HeatFiles extends MavenLikeVersioning implements Serializable {
30         
31         private static final long serialVersionUID = 768026109321305392L;
32
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;
40
41
42         public String getArtifactUuid() {
43                 return this.artifactUuid;
44         }
45         public void setArtifactUuid(String artifactUuid) {
46                 this.artifactUuid = artifactUuid;
47         }
48
49         public String getDescription() {
50                 return this.description;
51         }
52         public void setDescription(String description) {
53                 this.description = description;
54         }
55
56         public String getFileName() {
57                 return this.fileName;
58         }
59         public void setFileName(String fileName) {
60                 this.fileName = fileName;
61         }
62
63         public String getFileBody() {
64                 return this.fileBody;
65         }
66         public void setFileBody(String fileBody) {
67                 this.fileBody = fileBody;
68         }
69
70         public Timestamp getCreated() {
71                 return created;
72         }
73
74         public void setCreated(Timestamp created) {
75                 this.created = created;
76         }
77
78         public String getAsdcUuid() {
79                 return this.artifactUuid;
80         }
81         public void setAsdcUuid(String artifactUuid) {
82                 this.artifactUuid = artifactUuid;
83         }
84
85         @Override
86         public String getVersion() {
87                 return version;
88         }
89
90         @Override
91         public void setVersion(String version) {
92                 this.version = version;
93         }
94
95         public String getArtifactChecksum() {
96                 return artifactChecksum;
97         }
98         public void setArtifactChecksum(String artifactChecksum) {
99                 this.artifactChecksum = artifactChecksum;
100         }
101
102         @Override
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");
108                 } else {
109                         sb.append(", description=").append(this.description);
110                 }
111                 if (this.fileName == null) {
112                         sb.append(", fileName=null");
113                 } else {
114                         sb.append(",fileName=").append(this.fileName);
115                 }
116                 if (this.fileBody == null) {
117                         sb.append(", fileBody=null");
118                 } else {
119                         sb.append(",fileBody=").append(this.fileBody);
120                 }
121                 sb.append(", artifactChecksum=").append(this.artifactChecksum);
122                 if (created != null) {
123                 sb.append (",created=");
124                 sb.append (DateFormat.getInstance().format(created));
125             }
126                 return sb.toString();
127         }
128 }