2 * Copyright © 2016-2018 European Support Limited
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package org.openecomp.core.tools.store.zusammen.datatypes;
19 import com.datastax.driver.mapping.annotations.Column;
20 import com.datastax.driver.mapping.annotations.PartitionKey;
21 import com.datastax.driver.mapping.annotations.Table;
23 import java.nio.ByteBuffer;
27 * CREATE TABLE zusammen_dox.element (
37 * searchable_data blob,
38 * sub_element_ids set<text>,
40 * PRIMARY KEY ((space, item_id, version_id, element_id))
44 keyspace = "zusammen_dox",
47 public class ElementEntity {
48 @Column( name = "space" )
52 @Column( name = "item_id" )
54 private String itemId;
56 @Column( name = "version_id" )
58 private String versionId;
60 @Column(name = "element_id")
62 private String elementId;
64 @Column(name = "data")
65 private ByteBuffer data;
67 @Column(name = "info")
70 @Column(name = "namespace")
71 private String namespace;
73 @Column(name = "parent_id")
74 private String parentId;
76 @Column(name = "relations")
77 private String relations;
79 @Column(name = "searchable_data")
80 private ByteBuffer searchableData;
82 @Column(name = "sub_element_ids")
83 private Set<String> subElementIds;
86 @Column(name = "visualization")
87 private ByteBuffer visualization;
89 public String getSpace() {
93 public void setSpace(String space) {
97 public String getItemId() {
101 public void setItemId(String itemId) {
102 this.itemId = itemId;
105 public String getVersionId() {
109 public void setVersionId(String versionId) {
110 this.versionId = versionId;
113 public String getElementId() {
117 public void setElementId(String elementId) {
118 this.elementId = elementId;
121 public ByteBuffer getData() {
125 public void setData(ByteBuffer data) {
129 public String getInfo() {
133 public void setInfo(String info) {
137 public String getNamespace() {
141 public void setNamespace(String namespace) {
142 this.namespace = namespace;
145 public String getParentId() {
149 public void setParentId(String parentId) {
150 this.parentId = parentId;
153 public String getRelations() {
157 public void setRelations(String relations) {
158 this.relations = relations;
161 public ByteBuffer getSearchableData() {
162 return searchableData;
165 public void setSearchableData(ByteBuffer searchableData) {
166 this.searchableData = searchableData;
169 public Set<String> getSubElementIds() {
170 return subElementIds;
173 public void setSubElementIds(Set<String> subElementIds) {
174 this.subElementIds = subElementIds;
177 public ByteBuffer getVisualization() {
178 return visualization;
181 public void setVisualization(ByteBuffer visualization) {
182 this.visualization = visualization;