diff options
Diffstat (limited to 'catalog-dao/src/main/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribDeployEventTableDesc.java')
-rw-r--r-- | catalog-dao/src/main/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribDeployEventTableDesc.java | 28 |
1 files changed, 7 insertions, 21 deletions
diff --git a/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribDeployEventTableDesc.java b/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribDeployEventTableDesc.java index fefe55313c..32e5e490d3 100644 --- a/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribDeployEventTableDesc.java +++ b/catalog-dao/src/main/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribDeployEventTableDesc.java @@ -21,6 +21,8 @@ package org.openecomp.sdc.be.dao.cassandra.schema.tables; import com.datastax.driver.core.DataType; +import lombok.AllArgsConstructor; +import lombok.Getter; import org.apache.commons.lang3.tuple.ImmutablePair; import org.openecomp.sdc.be.resources.data.auditing.AuditingTypesConstants; @@ -28,7 +30,6 @@ import java.util.Map; public class DistribDeployEventTableDesc extends DistribBaseEventTableDesc { - @Override public String getTableName() { return AuditingTypesConstants.DISTRIBUTION_DEPLOY_EVENT_TYPE; @@ -47,6 +48,8 @@ public class DistribDeployEventTableDesc extends DistribBaseEventTableDesc { } + @Getter + @AllArgsConstructor enum DSEFieldsDescription { MODIFIER("modifier", DataType.varchar(), false), CURR_VERSION("curr_version", DataType.varchar(), false), @@ -54,27 +57,10 @@ public class DistribDeployEventTableDesc extends DistribBaseEventTableDesc { RESOURCE_NAME("resource_name", DataType.varchar(), false), RESOURCE_TYPE("resource_type", DataType.varchar(), false); - private String name; - private DataType type; - private boolean indexed; - - DSEFieldsDescription(String name, DataType type, boolean indexed) { - this.name = name; - this.type = type; - this.indexed = indexed; - } - - public String getName() { - return name; - } - - public DataType getType() { - return type; - } + private final String name; + private final DataType type; + private final boolean indexed; - public boolean isIndexed() { - return indexed; - } } } |