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.sdc.vendorsoftwareproduct.dao.type;
23 import com.datastax.driver.mapping.annotations.Column;
24 import com.datastax.driver.mapping.annotations.Frozen;
25 import com.datastax.driver.mapping.annotations.PartitionKey;
26 import com.datastax.driver.mapping.annotations.Table;
27 import org.openecomp.sdc.versioning.dao.types.Version;
29 import java.nio.ByteBuffer;
32 @Table(keyspace = "dox", name = "package_details")
33 public class PackageInfo {
37 @Column(name = "vsp_id")
40 @PartitionKey(value = 1)
42 private Version version;
44 @Column(name = "display_name")
45 private String displayName;
47 @Column(name = "vsp_name")
48 private String vspName;
50 @Column(name = "vsp_description")
51 private String vspDescription;
53 @Column(name = "vendor_name")
54 private String vendorName;
56 private String category;
58 @Column(name = "sub_category")
59 private String subCategory;
61 @Column(name = "vendor_release")
62 private String vendorRelease;
64 @Column(name = "package_checksum")
65 private String packageChecksum;
67 @Column(name = "package_type")
68 private String packageType;
70 @Column(name = "translate_content")
71 private ByteBuffer translatedFile;
73 public PackageInfo() {
76 public PackageInfo(String packageId, Version version) {
77 this.vspId = packageId;
78 this.version = version;
81 public String getDisplayName() {
85 public void setDisplayName(String displayName) {
86 this.displayName = displayName;
89 public String getVspDescription() {
90 return vspDescription;
93 public void setVspDescription(String vspDescription) {
94 this.vspDescription = vspDescription;
97 public Version getVersion() {
101 public void setVersion(Version version) {
102 this.version = version;
105 public String getVspId() {
109 public void setVspId(String vspId) {
113 public String getCategory() {
117 public void setCategory(String category) {
118 this.category = category;
121 public String getSubCategory() {
125 public void setSubCategory(String subCategory) {
126 this.subCategory = subCategory;
129 public String getVendorName() {
133 public void setVendorName(String vendorName) {
134 this.vendorName = vendorName;
137 public String getVendorRelease() {
138 return vendorRelease;
141 public void setVendorRelease(String vendorRelease) {
142 this.vendorRelease = vendorRelease;
145 public String getPackageChecksum() {
146 return packageChecksum;
149 public void setPackageChecksum(String packageChecksum) {
150 this.packageChecksum = packageChecksum;
153 public String getPackageType() {
157 public void setPackageType(String packageType) {
158 this.packageType = packageType;
161 public ByteBuffer getTranslatedFile() {
162 return translatedFile;
165 public void setTranslatedFile(ByteBuffer translatedFile) {
166 this.translatedFile = translatedFile;
169 public String getVspName() {
173 public void setVspName(String vendorName) {
174 this.vspName = vendorName;