* ===================================================================
* Copyright (c) 2017 AT&T Intellectual Property
* ===================================================================
+ * Modifications Copyright (c) 2018 IBM
+ * ===================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
import javax.ws.rs.core.Response.ResponseBuilder;
import javax.ws.rs.core.Response.Status;
-import org.codehaus.jettison.json.JSONObject;
import org.onap.music.datastore.PreparedQueryObject;
import org.onap.music.eelf.logging.EELFLoggerDelegate;
import org.onap.music.eelf.logging.format.AppMessages;
import org.onap.music.main.ReturnType;
import org.onap.music.response.jsonobjects.JsonResponse;
import org.onap.music.rest.RestMusicAdminAPI;
-import org.onap.music.conductor.*;
-
import com.datastax.driver.core.DataType;
import com.datastax.driver.core.TableMetadata;
}
Map<String, String> status = new HashMap<>();
- status.put("exists", conditions.get("exists").get("status").toString());
- status.put("nonexists", conditions.get("nonexists").get("status").toString());
+ status.put("exists", conditions.get("exists").get("status"));
+ status.put("nonexists", conditions.get("nonexists").get("status"));
ReturnType out = null;
out = MusicConditional.conditionalInsert(keyspace, tablename, casscadeColumnName, casscadeColumnData,