|
20 | 20 | import java.util.Collections; |
21 | 21 | import java.util.Map; |
22 | 22 | import java.util.stream.Stream; |
23 | | - |
24 | 23 | /** |
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)}. |
27 | 26 | */ |
28 | 27 | public interface ArangoDBDocumentManager extends DocumentManager { |
29 | 28 |
|
30 | 29 | /** |
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 |
38 | 40 | */ |
39 | 41 | Stream<DocumentEntity> aql(String query, Map<String, Object> params); |
40 | 42 |
|
41 | 43 | /** |
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 |
52 | 57 | */ |
53 | 58 | <T> Stream<T> aql(String query, Map<String, Object> params, Class<T> type); |
54 | 59 |
|
55 | 60 | /** |
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> |
60 | 64 | * |
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 |
66 | 73 | */ |
67 | 74 | <T> Stream<T> aql(String query, Class<T> type); |
68 | 75 | } |
| 76 | + |
0 commit comments