summaryrefslogtreecommitdiffstats
path: root/catalog-dao/src/main/java/org
diff options
context:
space:
mode:
authorTal Gitelman <tg851x@intl.att.com>2018-05-30 16:15:52 +0300
committerTal Gitelman <tg851x@intl.att.com>2018-05-30 13:17:16 +0000
commit4b93ef990cd41e9728b1059295a331e27c307df1 (patch)
tree48105df63c2029e3db432f31059714bf1dc55473 /catalog-dao/src/main/java/org
parente7c6fa0d421e0e9df5c848ff2b6fc61c1b71871b (diff)
new unit tests for sdc-dao
Change-Id: I2ec09504aee1ab315dbc8e1d02ac85ed76e24c9b Issue-ID: SDC-1333 Signed-off-by: Tal Gitelman <tg851x@intl.att.com>
Diffstat (limited to 'catalog-dao/src/main/java/org')
-rw-r--r--catalog-dao/src/main/java/org/openecomp/sdc/be/dao/neo4j/GraphPropertiesDictionary.java41
1 files changed, 4 insertions, 37 deletions
diff --git a/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/neo4j/GraphPropertiesDictionary.java b/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/neo4j/GraphPropertiesDictionary.java
index 86a171633d..6258346a40 100644
--- a/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/neo4j/GraphPropertiesDictionary.java
+++ b/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/neo4j/GraphPropertiesDictionary.java
@@ -20,10 +20,6 @@
package org.openecomp.sdc.be.dao.neo4j;
-import java.util.ArrayList;
-import java.util.List;
-
-
public enum GraphPropertiesDictionary {
// field name class type unique indexed
// stored in graph index
@@ -153,10 +149,10 @@ public enum GraphPropertiesDictionary {
- private String property;
- private Class clazz;
- private boolean unique;
- private boolean indexed;
+ private final String property;
+ private final Class clazz;
+ private final boolean unique;
+ private final boolean indexed;
GraphPropertiesDictionary(String property,Class clazz, boolean unique,boolean indexed) {
@@ -171,44 +167,15 @@ public enum GraphPropertiesDictionary {
return property;
}
- public void setProperty(String property) {
- this.property = property;
- }
-
public Class getClazz() {
return clazz;
}
- public void setClazz(Class clazz) {
- this.clazz = clazz;
- }
public boolean isUnique() {
return unique;
}
- public void setUnique(boolean unique) {
- this.unique = unique;
- }
public boolean isIndexed() {
return indexed;
}
-
-
- public void setIndexed(boolean indexed) {
- this.indexed = indexed;
- }
-
-
- public static List<String> getAllProperties() {
-
- List<String> arrayList = new ArrayList<String>();
-
- for (GraphPropertiesDictionary graphProperty : GraphPropertiesDictionary
- .values()) {
- arrayList.add(graphProperty.getProperty());
- }
-
- return arrayList;
- }
-
}