[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-core-lib / openecomp-config-lib / src / main / java / org / openecomp / core / utilities / applicationconfig / dao / impl / ApplicationConfigDaoCassandraImpl.java
index 7fb0e2f..b7cd576 100644 (file)
@@ -36,8 +36,10 @@ import org.openecomp.core.utilities.applicationconfig.type.ConfigurationData;
 import java.util.Collection;
 import java.util.Objects;
 
+
 public class ApplicationConfigDaoCassandraImpl extends CassandraBaseDao<ApplicationConfigEntity>
-    implements ApplicationConfigDao {
+    implements
+    ApplicationConfigDao {
 
   private static final NoSqlDb noSqlDb = NoSqlDbFactory.getInstance().createInterface();
   private static final Mapper<ApplicationConfigEntity> mapper =
@@ -55,11 +57,6 @@ public class ApplicationConfigDaoCassandraImpl extends CassandraBaseDao<Applicat
     return new Object[]{entity.getNamespace(), entity.getKey(), entity.getValue()};
   }
 
-  @Override
-  public Collection<ApplicationConfigEntity> list(ApplicationConfigEntity entity) {
-    return accessor.list(entity.getNamespace()).all();
-  }
-
   @Override
   public void create(ApplicationConfigEntity entity) {
     accessor.updateApplicationConfigData(entity.getNamespace(), entity.getKey(), entity.getValue());
@@ -75,6 +72,11 @@ public class ApplicationConfigDaoCassandraImpl extends CassandraBaseDao<Applicat
     return accessor.get(entity.getNamespace(), entity.getKey());
   }
 
+  @Override
+  public Collection<ApplicationConfigEntity> list(ApplicationConfigEntity entity) {
+    return accessor.list(entity.getNamespace()).all();
+  }
+
   @Override
   public long getValueTimestamp(String namespace, String key) {
     ResultSet resultSet = accessor.getValueAndTimestampOfConfigurationValue(namespace, key);