aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openecomp/crud/dao/GraphDao.java
diff options
context:
space:
mode:
authorBansal, Nitin (nb121v) <nitin.bansal@amdocs.com>2017-11-16 14:56:59 -0500
committerBansal, Nitin (nb121v) <nitin.bansal@amdocs.com>2017-11-16 15:01:37 -0500
commitbe2eab9395a787ca4b13447f9d2c382d12f5dcd5 (patch)
tree87c81f3a919ca61515212455fc90bc96402de9a5 /src/main/java/org/openecomp/crud/dao/GraphDao.java
parenteff2052b4a77690b4e2e67c8a5b438457657c99f (diff)
Add bulk API to gizmo
Add bulk API to gizmo IssueID: AAI-481 Change-Id: Iff9df1a8fdc73c87d726da7294c2eb9f471080f1 Signed-off-by: Bansal, Nitin (nb121v) <nitin.bansal@amdocs.com>
Diffstat (limited to 'src/main/java/org/openecomp/crud/dao/GraphDao.java')
-rw-r--r--src/main/java/org/openecomp/crud/dao/GraphDao.java24
1 files changed, 21 insertions, 3 deletions
diff --git a/src/main/java/org/openecomp/crud/dao/GraphDao.java b/src/main/java/org/openecomp/crud/dao/GraphDao.java
index c714249..67c1ff3 100644
--- a/src/main/java/org/openecomp/crud/dao/GraphDao.java
+++ b/src/main/java/org/openecomp/crud/dao/GraphDao.java
@@ -23,13 +23,14 @@
*/
package org.openecomp.crud.dao;
+import java.util.List;
+import java.util.Map;
+
import org.openecomp.crud.entity.Edge;
+
import org.openecomp.crud.entity.Vertex;
import org.openecomp.crud.exception.CrudException;
-import java.util.List;
-import java.util.Map;
-
public interface GraphDao {
public Vertex getVertex(String id) throws CrudException;
@@ -137,4 +138,21 @@ public interface GraphDao {
* @throws CrudException
*/
public void deleteEdge(String id, String type) throws CrudException;
+
+
+ public String openTransaction();
+ public void commitTransaction(String id) throws CrudException;
+ public void rollbackTransaction(String id) throws CrudException;
+ public boolean transactionExists(String id) throws CrudException;
+
+ public Vertex addVertex(String type, Map<String, Object> properties, String txId) throws CrudException;
+ public Edge addEdge(String type, Vertex source, Vertex target, Map<String, Object> properties, String txId)
+ throws CrudException;
+ public Vertex updateVertex(String id, String type, Map<String, Object> properties, String txId)
+ throws CrudException;
+
+ public Edge updateEdge(Edge edge, 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 Edge getEdge(String id, String type, String txId) throws CrudException;
}