push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-vendor-software-product-lib / openecomp-sdc-vendor-software-product-api / src / main / java / org / openecomp / sdc / vendorsoftwareproduct / dao / type / PackageInfo.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
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.sdc.vendorsoftwareproduct.dao.type;
22
23
24 import com.datastax.driver.mapping.annotations.Column;
25 import com.datastax.driver.mapping.annotations.Frozen;
26 import com.datastax.driver.mapping.annotations.PartitionKey;
27 import com.datastax.driver.mapping.annotations.Table;
28 import org.openecomp.sdc.versioning.dao.types.Version;
29
30 import java.nio.ByteBuffer;
31
32 @Table(keyspace = "dox", name = "package_details")
33 public class PackageInfo {
34
35
36   @PartitionKey
37   @Column(name = "vsp_id")
38   private String vspId;
39
40   @PartitionKey(value = 1)
41   @Frozen
42   private Version version;
43
44   @Column(name = "display_name")
45   private String displayName;
46
47   @Column(name = "vsp_name")
48   private String vspName;
49
50   @Column(name = "vsp_description")
51   private String vspDescription;
52
53   @Column(name = "vendor_name")
54   private String vendorName;
55
56   private String category;
57
58   @Column(name = "sub_category")
59   private String subCategory;
60
61   @Column(name = "vendor_release")
62   private String vendorRelease;
63
64   @Column(name = "package_checksum")
65   private String packageChecksum;
66
67   @Column(name = "package_type")
68   private String packageType;
69
70   @Column(name = "translate_content")
71   private ByteBuffer translatedFile;
72
73   public PackageInfo() {
74   }
75
76   public PackageInfo(String packageId, Version version) {
77     this.vspId = packageId;
78     this.version = version;
79   }
80
81   public String getDisplayName() {
82     return displayName;
83   }
84
85   public void setDisplayName(String displayName) {
86     this.displayName = displayName;
87   }
88
89   public String getVspDescription() {
90     return vspDescription;
91   }
92
93   public void setVspDescription(String vspDescription) {
94     this.vspDescription = vspDescription;
95   }
96
97   public Version getVersion() {
98     return version;
99   }
100
101   public void setVersion(Version version) {
102     this.version = version;
103   }
104
105   public String getVspId() {
106     return vspId;
107   }
108
109   public void setVspId(String vspId) {
110     this.vspId = vspId;
111   }
112
113   public String getCategory() {
114     return category;
115   }
116
117   public void setCategory(String category) {
118     this.category = category;
119   }
120
121   public String getSubCategory() {
122     return subCategory;
123   }
124
125   public void setSubCategory(String subCategory) {
126     this.subCategory = subCategory;
127   }
128
129   public String getVendorName() {
130     return vendorName;
131   }
132
133   public void setVendorName(String vendorName) {
134     this.vendorName = vendorName;
135   }
136
137   public String getVendorRelease() {
138     return vendorRelease;
139   }
140
141   public void setVendorRelease(String vendorRelease) {
142     this.vendorRelease = vendorRelease;
143   }
144
145   public String getPackageChecksum() {
146     return packageChecksum;
147   }
148
149   public void setPackageChecksum(String packageChecksum) {
150     this.packageChecksum = packageChecksum;
151   }
152
153   public String getPackageType() {
154     return packageType;
155   }
156
157   public void setPackageType(String packageType) {
158     this.packageType = packageType;
159   }
160
161   public ByteBuffer getTranslatedFile() {
162     return translatedFile;
163   }
164
165   public void setTranslatedFile(ByteBuffer translatedFile) {
166     this.translatedFile = translatedFile;
167   }
168
169   public String getVspName() {
170     return vspName;
171   }
172
173   public void setVspName(String vendorName) {
174     this.vspName = vendorName;
175   }
176 }