Skip to content

Commit 1446d28

Browse files
author
Achim Brandt
committed
Internal updates and traversal API updates
1 parent 98854a1 commit 1446d28

12 files changed

+9055
-8770
lines changed

src/main/java/com/arangodb/ArangoConfigure.java

Lines changed: 374 additions & 354 deletions
Large diffs are not rendered by default.

src/main/java/com/arangodb/ArangoDriver.java

Lines changed: 4971 additions & 4856 deletions
Large diffs are not rendered by default.

src/main/java/com/arangodb/InternalDocumentDriver.java

Lines changed: 47 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,51 @@
99
/**
1010
* Created by fbartels on 10/27/14.
1111
*/
12-
public interface InternalDocumentDriver extends BaseDriverInterface {
13-
<T> DocumentEntity<T> createDocument(String database, String collectionName, String documentKey, Object value, Boolean createCollection, Boolean waitForSync) throws ArangoException;
14-
15-
<T> DocumentEntity<T> createDocumentRaw(String database, String collectionName, String documentKey, String rawJsonString, Boolean createCollection, Boolean waitForSync) throws ArangoException;
16-
17-
<T> DocumentEntity<T> replaceDocument(String database, String documentHandle, Object value, Long rev, Policy policy, Boolean waitForSync) throws ArangoException;
18-
19-
<T> DocumentEntity<T> updateDocument(String database, String documentHandle, Object value, Long rev, Policy policy, Boolean waitForSync, Boolean keepNull) throws ArangoException;
20-
21-
List<String> getDocuments(String database, String collectionName, boolean handleConvert) throws ArangoException;
22-
23-
long checkDocument(String database, String documentHandle) throws ArangoException;
24-
25-
<T> DocumentEntity<T> getDocument(String database, String documentHandle, Class<?> clazz, Long ifNoneMatchRevision, Long ifMatchRevision) throws ArangoException;
26-
27-
DocumentEntity<?> deleteDocument(String database, String documentHandle, Long rev, Policy policy) throws ArangoException;
12+
public interface InternalDocumentDriver extends BaseDriverInterface {
13+
<T> DocumentEntity<T> createDocument(
14+
String database,
15+
String collectionName,
16+
String documentKey,
17+
T value,
18+
Boolean createCollection,
19+
Boolean waitForSync) throws ArangoException;
20+
21+
DocumentEntity<String> createDocumentRaw(
22+
String database,
23+
String collectionName,
24+
String documentKey,
25+
String rawJsonString,
26+
Boolean createCollection,
27+
Boolean waitForSync) throws ArangoException;
28+
29+
<T> DocumentEntity<T> replaceDocument(
30+
String database,
31+
String documentHandle,
32+
T value,
33+
Long rev,
34+
Policy policy,
35+
Boolean waitForSync) throws ArangoException;
36+
37+
<T> DocumentEntity<T> updateDocument(
38+
String database,
39+
String documentHandle,
40+
T value,
41+
Long rev,
42+
Policy policy,
43+
Boolean waitForSync,
44+
Boolean keepNull) throws ArangoException;
45+
46+
List<String> getDocuments(String database, String collectionName, boolean handleConvert) throws ArangoException;
47+
48+
long checkDocument(String database, String documentHandle) throws ArangoException;
49+
50+
<T> DocumentEntity<T> getDocument(
51+
String database,
52+
String documentHandle,
53+
Class<T> clazz,
54+
Long ifNoneMatchRevision,
55+
Long ifMatchRevision) throws ArangoException;
56+
57+
DocumentEntity<?> deleteDocument(String database, String documentHandle, Long rev, Policy policy)
58+
throws ArangoException;
2859
}

src/main/java/com/arangodb/InternalEdgeDriver.java

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,13 @@
2727

2828
public interface InternalEdgeDriver extends BaseDriverInterface {
2929

30-
<T> EdgeEntity<T> createEdge(
31-
String databaseName,
32-
String collectionName,
33-
T object,
34-
String from,
35-
String to,
36-
Boolean createCollection,
37-
Boolean waitForSync
38-
) throws ArangoException;
30+
<T> EdgeEntity<T> createEdge(
31+
String graphName,
32+
String collectionName,
33+
T object,
34+
String from,
35+
String to,
36+
Boolean createCollection,
37+
Boolean waitForSync) throws ArangoException;
3938

4039
}

0 commit comments

Comments
 (0)