aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/tools/zusammen-tools/src/main/java/org/openecomp/core/tools/store/zusammen/datatypes/ElementEntity.java
blob: d88f36b8dd790da3a9e9eb7e34665ebc93066cd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
/*
 * Copyright © 2016-2018 European Support Limited
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.openecomp.core.tools.store.zusammen.datatypes;

import com.datastax.driver.mapping.annotations.Column;
import com.datastax.driver.mapping.annotations.PartitionKey;
import com.datastax.driver.mapping.annotations.Table;
import java.nio.ByteBuffer;
import java.util.Set;

/**
 * CREATE TABLE zusammen_dox.element (
 * space text,
 * item_id text,
 * version_id text,
 * element_id text,
 * data blob,
 * info text,
 * namespace text,
 * parent_id text,
 * relations text,
 * searchable_data blob,
 * sub_element_ids set<text>,
 * visualization blob,
 * PRIMARY KEY ((space, item_id, version_id, element_id))
 * )
 */
@Table(keyspace = "zusammen_dox", name = "element")
public class ElementEntity {

    @Column(name = "space")
    @PartitionKey(0)
    private String space;
    @Column(name = "item_id")
    @PartitionKey(1)
    private String itemId;
    @Column(name = "version_id")
    @PartitionKey(2)
    private String versionId;
    @Column(name = "element_id")
    @PartitionKey(3)
    private String elementId;
    @Column(name = "data")
    private ByteBuffer data;
    @Column(name = "info")
    private String info;
    @Column(name = "namespace")
    private String namespace;
    @Column(name = "parent_id")
    private String parentId;
    @Column(name = "relations")
    private String relations;
    @Column(name = "searchable_data")
    private ByteBuffer searchableData;
    @Column(name = "sub_element_ids")
    private Set<String> subElementIds;
    @Column(name = "visualization")
    private ByteBuffer visualization;

    public String getSpace() {
        return space;
    }

    public void setSpace(String space) {
        this.space = space;
    }

    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    public String getVersionId() {
        return versionId;
    }

    public void setVersionId(String versionId) {
        this.versionId = versionId;
    }

    public String getElementId() {
        return elementId;
    }

    public void setElementId(String elementId) {
        this.elementId = elementId;
    }

    public ByteBuffer getData() {
        return data;
    }

    public void setData(ByteBuffer data) {
        this.data = data;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public String getNamespace() {
        return namespace;
    }

    public void setNamespace(String namespace) {
        this.namespace = namespace;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getRelations() {
        return relations;
    }

    public void setRelations(String relations) {
        this.relations = relations;
    }

    public ByteBuffer getSearchableData() {
        return searchableData;
    }

    public void setSearchableData(ByteBuffer searchableData) {
        this.searchableData = searchableData;
    }

    public Set<String> getSubElementIds() {
        return subElementIds;
    }

    public void setSubElementIds(Set<String> subElementIds) {
        this.subElementIds = subElementIds;
    }

    public ByteBuffer getVisualization() {
        return visualization;
    }

    public void setVisualization(ByteBuffer visualization) {
        this.visualization = visualization;
    }
}