Skip to content

Commit b430ba5

Browse files
committed
docs: enhance documentation at arangodb document manager
Signed-off-by: Otavio Santana <[email protected]>
1 parent 36ed6c2 commit b430ba5

File tree

1 file changed

+37
-29
lines changed

1 file changed

+37
-29
lines changed

jnosql-arangodb/src/main/java/org/eclipse/jnosql/databases/arangodb/communication/ArangoDBDocumentManager.java

Lines changed: 37 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -20,49 +20,57 @@
2020
import java.util.Collections;
2121
import java.util.Map;
2222
import java.util.stream.Stream;
23-
2423
/**
25-
* The ArangoDB implementation of {@link DocumentManager} it does not support to TTL methods:
26-
* <p>{@link DocumentManager#insert(DocumentEntity)}</p>
24+
* The ArangoDB implementation of {@link DocumentManager}. This implementation does not support TTL methods in the context of
25+
* {@link DocumentManager#insert(DocumentEntity)}.
2726
*/
2827
public interface ArangoDBDocumentManager extends DocumentManager {
2928

3029
/**
31-
* Executes ArangoDB query language, AQL.
32-
* <p>FOR u IN users FILTER u.status == @status RETURN u </p>
33-
* This conversion will happen at Eclipse JNoSQL side.
34-
* @param query the query
35-
* @param params the named queries
36-
* @return the query result
37-
* @throws NullPointerException when either query or params are null
30+
* Executes an ArangoDB query using the ArangoDB Query Language (AQL).
31+
*
32+
* <p>Example query: {@code FOR u IN users FILTER u.status == @status RETURN u}</p>
33+
*
34+
* <p>The conversion from the query result to {@link DocumentEntity} will happen at the Eclipse JNoSQL side.</p>
35+
*
36+
* @param query the AQL query
37+
* @param params the named parameters for the query
38+
* @return a {@link Stream} of {@link DocumentEntity} representing the query result
39+
* @throws NullPointerException when either the query or params are null
3840
*/
3941
Stream<DocumentEntity> aql(String query, Map<String, Object> params);
4042

4143
/**
42-
* Executes ArangoDB query language, AQL.
43-
* <p>FOR u IN users FILTER u.status == @status RETURN u </p>
44-
* The serialization will happen at the ArangoDB side using the {@link com.arangodb.ArangoDatabase#query(String, Class)}.
45-
* This serialization will not have any converter support.
46-
* @param query the query
47-
* @param params named query
48-
* @param type The type of the result
49-
* @param <T> the type
50-
* @return the query result
51-
* @throws NullPointerException when either query or params are null
44+
* Executes an ArangoDB query using the ArangoDB Query Language (AQL).
45+
*
46+
* <p>Example query: {@code FOR u IN users FILTER u.status == @status RETURN u}</p>
47+
*
48+
* <p>The serialization of the query result will happen at the ArangoDB side using
49+
* {@link com.arangodb.ArangoDatabase#query(String, Class)}. This serialization does not have any converter support.</p>
50+
*
51+
* @param query the AQL query
52+
* @param params the named parameters for the query
53+
* @param type the type of the result
54+
* @param <T> the type
55+
* @return a {@link Stream} of the specified type representing the query result
56+
* @throws NullPointerException when either the query or params are null
5257
*/
5358
<T> Stream<T> aql(String query, Map<String, Object> params, Class<T> type);
5459

5560
/**
56-
* Executes ArangoDB query language, AQL and uses the {@link Collections#emptyMap()} as params.
57-
* The serialization will happen at the ArangoDB side using the {@link com.arangodb.ArangoDatabase#query(String, Class)}.
58-
* This serialization will not have any converter support.
59-
* <p>FOR u IN users FILTER u.status == @status RETURN u </p>
61+
* Executes an ArangoDB query using the ArangoDB Query Language (AQL) with an empty parameter map.
62+
*
63+
* <p>Example query: {@code FOR u IN users FILTER u.status == @status RETURN u}</p>
6064
*
61-
* @param query the query
62-
* @param type The type of the result
63-
* @param <T> the type
64-
* @return the query result
65-
* @throws NullPointerException when either query or values are null
65+
* <p>The serialization of the query result will happen at the ArangoDB side using
66+
* {@link com.arangodb.ArangoDatabase#query(String, Class)}. This serialization does not have any converter support.</p>
67+
*
68+
* @param query the AQL query
69+
* @param type the type of the result
70+
* @param <T> the type
71+
* @return a {@link Stream} of the specified type representing the query result
72+
* @throws NullPointerException when either the query or type are null
6673
*/
6774
<T> Stream<T> aql(String query, Class<T> type);
6875
}
76+

0 commit comments

Comments
 (0)