2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright © 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=========================================================
20 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22 package org.onap.aai.db.schema;
24 import java.util.LinkedHashSet;
27 import com.thinkaurelius.titan.core.schema.SchemaStatus;
29 public class DBIndex implements Named {
31 private String name = null;
32 private boolean unique = false;
33 private LinkedHashSet<DBProperty> properties = new LinkedHashSet<>();
34 private SchemaStatus status = null;
39 public String getName() {
46 * @param name the new name
48 public void setName(String name) {
53 * Checks if is unique.
55 * @return true, if is unique
57 public boolean isUnique() {
64 * @param unique the new unique
66 public void setUnique(boolean unique) {
71 * Gets the properties.
73 * @return the properties
75 public Set<DBProperty> getProperties() {
80 * Sets the properties.
82 * @param properties the new properties
84 public void setProperties(LinkedHashSet<DBProperty> properties) {
85 this.properties = properties;
93 public SchemaStatus getStatus() {
100 * @param status the new status
102 public void setStatus(SchemaStatus status) {
103 this.status = status;