diff options
author | 2018-01-22 19:29:18 -0500 | |
---|---|---|
committer | 2018-01-22 19:31:50 -0500 | |
commit | c8d962ad88da4403ae9186e7213a7ce28b82aaa1 (patch) | |
tree | 564a7482c69040e14b4c219f6904d02a2abb97d4 /src/main/java/org/onap/crud/dao/GraphDao.java | |
parent | a0e716dc093cd8a4a4ec8aaca7bc1635e518527a (diff) |
Fix issue with patch requests
Fix issue where patch commands were failing for non-string vertex
properties
Change-Id: I1cf25565fc121745e817c8292c99d4cdc89c4a35
Issue-ID: AAI-685
Signed-off-by: sblimkie <steven.blimkie@amdocs.com>
Diffstat (limited to 'src/main/java/org/onap/crud/dao/GraphDao.java')
-rw-r--r-- | src/main/java/org/onap/crud/dao/GraphDao.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/main/java/org/onap/crud/dao/GraphDao.java b/src/main/java/org/onap/crud/dao/GraphDao.java index c62a788..7834bb2 100644 --- a/src/main/java/org/onap/crud/dao/GraphDao.java +++ b/src/main/java/org/onap/crud/dao/GraphDao.java @@ -34,9 +34,9 @@ import org.onap.crud.exception.CrudException; public interface GraphDao { - public Vertex getVertex(String id) throws CrudException; + public Vertex getVertex(String id, String version) throws CrudException; - public Vertex getVertex(String id, String type) throws CrudException; + public Vertex getVertex(String id, String type, String version) throws CrudException; /** * Retrieve all of the edges which are incident to the vertex with the @@ -111,7 +111,7 @@ public interface GraphDao { * @return - The {@link Vertex} object that was created. * @throws CrudException */ - public Vertex addVertex(String type, Map<String, Object> properties) throws CrudException; + public Vertex addVertex(String type, Map<String, Object> properties, String version) throws CrudException; /** * Updates an existing {@link Vertex}. @@ -123,7 +123,7 @@ public interface GraphDao { * @return - The udpated vertex. * @throws CrudException */ - public Vertex updateVertex(String id, String type, Map<String, Object> properties) throws CrudException; + public Vertex updateVertex(String id, String type, Map<String, Object> properties, String version) throws CrudException; /** * Removes the specified vertex from the graph data base. @@ -151,7 +151,7 @@ public interface GraphDao { * @return - The {@link Edge} object that was created. * @throws CrudException */ - public Edge addEdge(String type, Vertex source, Vertex target, Map<String, Object> properties) throws CrudException; + public Edge addEdge(String type, Vertex source, Vertex target, Map<String, Object> properties, String version) throws CrudException; /** * Updates an existing {@link Edge}. @@ -182,12 +182,12 @@ public interface GraphDao { public boolean transactionExists(String id) throws CrudException; - public Vertex addVertex(String type, Map<String, Object> properties, String txId) throws CrudException; + 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 txId) + public Edge addEdge(String type, Vertex source, Vertex target, Map<String, Object> properties, String version, String txId) throws CrudException; - public Vertex updateVertex(String id, String type, Map<String, Object> properties, String txId) throws CrudException; + public Vertex updateVertex(String id, String type, Map<String, Object> properties, String version, String txId) throws CrudException; public Edge updateEdge(Edge edge, String txId) throws CrudException; |