Skip to content

Commit 67f7924

Browse files
committed
Update
1 parent 85312ce commit 67f7924

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

driver/src/main/java/org/neo4j/driver/Driver.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@
6464
* @since 1.0 (Modified and Added {@link AsyncSession} and {@link RxSession} since 2.0)
6565
*/
6666
public interface Driver extends AutoCloseable {
67+
/**
68+
* Creates a new {@link QueryTask} instance that executes an idempotent query in a managed transaction with
69+
* automatic retries on retryable errors.
70+
*
71+
* @param query query string
72+
* @return new query task instance
73+
* @since 5.5
74+
*/
6775
@Experimental
6876
QueryTask queryTask(String query);
6977

driver/src/main/java/org/neo4j/driver/querytask/QueryTask.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
/**
3535
* A task that executes an idempotent query in a managed transaction with automatic retries on retryable errors.
3636
* <p>
37-
* This is a basic high-level API for executing idempotent queries. There are more advanced APIs available.
37+
* This is a high-level API for executing an idempotent query. There are more advanced APIs available.
3838
* For instance, {@link Session}, {@link Transaction} and transaction functions that are accessible via
3939
* methods like {@link Session#executeWrite(TransactionCallback)}, {@link Session#executeWriteWithoutResult(Consumer)}
4040
* and {@link Session#executeRead(TransactionCallback)} (there are also overloaded options available).
@@ -67,6 +67,14 @@
6767
* }
6868
* }
6969
* </pre>
70+
* <p>
71+
* In addition, it is possible to transform query result by using a provided {@link Collector}.
72+
* Examples:
73+
* <pre>
74+
* {@code
75+
*
76+
* }
77+
* </pre>
7078
*
7179
* @since 5.5
7280
*/

0 commit comments

Comments
 (0)