*/
package org.onap.crud.dao;
-import java.util.HashSet;
import java.util.List;
import java.util.Map;
+import java.util.Set;
import org.onap.aai.restclient.client.OperationResult;
+import org.onap.crud.dao.champ.ChampBulkPayload;
import org.onap.crud.entity.Edge;
import org.onap.crud.entity.Vertex;
import org.onap.crud.exception.CrudException;
* - The unique identifier of the vertex to retrieve the edges for.
* @param queryParams
* - query parameters to be passed
+ * @param txid
+ * - a DB transaction ID to use (if null, no transactionId is used)
* @return - A collection of edges.
* @throws CrudException
*/
- public List<Edge> getVertexEdges(String id, Map<String, String> queryParams) throws CrudException;
+ public List<Edge> getVertexEdges(String id, Map<String, String> queryParams, String txId) throws CrudException;
/**
* Retrieve a collection of {@link Vertex} objects which match the supplied
* @return - The {@link OperationResult} OperationResult
* @throws CrudException
*/
- public OperationResult getVertices(String type, Map<String, Object> filter, HashSet<String> properties, String version) throws CrudException;
+ public OperationResult getVertices(String type, Map<String, Object> filter, Set<String> properties, String version) throws CrudException;
/**
* Retrieve an {@link Edge} from the graph database by specifying its unique
* - The unique identifier of the edge to be deleted.
* @throws CrudException
*/
- public void deleteEdge(String id, String type) throws CrudException;
+ public void deleteEdge(String id) throws CrudException;
public String openTransaction();
public Vertex addVertex(String type, Map<String, Object> properties, String version, String txId) throws CrudException;
public Edge addEdge(String type, Vertex source, Vertex target, Map<String, Object> properties, String version, String txId)
- throws CrudException;
+ throws CrudException;
public Vertex updateVertex(String id, String type, Map<String, Object> properties, String version, String txId) throws CrudException;
public void deleteVertex(String id, String type, String txId) throws CrudException;
- public void deleteEdge(String id, String type, String txId) throws CrudException;
+ public void deleteEdge(String id, String txId) throws CrudException;
- public Edge getEdge(String id, String type, String txId) throws CrudException;
+ public Edge getEdge(String id, String txId) throws CrudException;
+
+ public Edge getEdge(String id) throws CrudException;
+
+ public OperationResult bulkOperation(ChampBulkPayload champPayload) throws CrudException;
}