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 =
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());
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);