Skip to content

Commit c536ba2

Browse files
committed
docs: enhance documentation at arandobb template
Signed-off-by: Otavio Santana <[email protected]>
1 parent b430ba5 commit c536ba2

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

jnosql-arangodb/src/main/java/org/eclipse/jnosql/databases/arangodb/mapping/ArangoDBTemplate.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,36 +32,36 @@ public interface ArangoDBTemplate extends JNoSQLDocumentTemplate {
3232
*
3333
* @param <T> entity class
3434
* @param query the query
35-
* @param values the named queries
35+
* @param params the named queries
3636
* @return the query result
37-
* @throws NullPointerException when either query or values are null
37+
* @throws NullPointerException when either query or params are null
3838
*/
39-
<T> Stream<T> aql(String query, Map<String, Object> values);
39+
<T> Stream<T> aql(String query, Map<String, Object> params);
4040

4141
/**
4242
* Executes ArangoDB query language, AQL.
4343
* <p>FOR u IN users FILTER u.status == @status RETURN u </p>
4444
*
4545
* @param query the query
46-
* @param values named query
47-
* @param typeClass The type of the result
46+
* @param params named query
47+
* @param type The type of the result
4848
* @param <T> the type
4949
* @return the query result
50-
* @throws NullPointerException when either query or values are null
50+
* @throws NullPointerException when either query or params are null
5151
*/
52-
<T> Stream<T> aql(String query, Map<String, Object> values, Class<T> typeClass);
52+
<T> Stream<T> aql(String query, Map<String, Object> params, Class<T> type);
5353

5454
/**
5555
* Executes ArangoDB query language, AQL.
5656
* <p>FOR u IN users FILTER u.status == @status RETURN u </p>
5757
*
5858
* @param query the query
59-
* @param typeClass The type of the result
59+
* @param type The type of the result
6060
* @param <T> the type
6161
* @return the query result
6262
* @throws NullPointerException when either query or values are null
6363
*/
64-
<T> Stream<T> aql(String query, Class<T> typeClass);
64+
<T> Stream<T> aql(String query, Class<T> type);
6565

6666

6767
}

jnosql-arangodb/src/main/java/org/eclipse/jnosql/databases/arangodb/mapping/DefaultArangoDBTemplate.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,19 +92,19 @@ protected Converters getConverters() {
9292

9393

9494
@Override
95-
public <T> Stream<T> aql(String query, Map<String, Object> values) {
95+
public <T> Stream<T> aql(String query, Map<String, Object> params) {
9696
requireNonNull(query, "query is required");
97-
requireNonNull(values, "values is required");
98-
return manager.get().aql(query, values).map(converter::toEntity).map(d -> (T) d);
97+
requireNonNull(params, "values is required");
98+
return manager.get().aql(query, params).map(converter::toEntity).map(d -> (T) d);
9999
}
100100

101101
@Override
102-
public <T> Stream<T> aql(String query, Map<String, Object> values, Class<T> typeClass) {
103-
return manager.get().aql(query, values, typeClass);
102+
public <T> Stream<T> aql(String query, Map<String, Object> params, Class<T> type) {
103+
return manager.get().aql(query, params, type);
104104
}
105105

106106
@Override
107-
public <T> Stream<T> aql(String query, Class<T> typeClass) {
108-
return manager.get().aql(query, typeClass);
107+
public <T> Stream<T> aql(String query, Class<T> type) {
108+
return manager.get().aql(query, type);
109109
}
110110
}

0 commit comments

Comments
 (0)