File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
driver/src/main/java/org/neo4j/driver Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 64
64
* @since 1.0 (Modified and Added {@link AsyncSession} and {@link RxSession} since 2.0)
65
65
*/
66
66
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
+ */
67
75
@ Experimental
68
76
QueryTask queryTask (String query );
69
77
Original file line number Diff line number Diff line change 34
34
/**
35
35
* A task that executes an idempotent query in a managed transaction with automatic retries on retryable errors.
36
36
* <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.
38
38
* For instance, {@link Session}, {@link Transaction} and transaction functions that are accessible via
39
39
* methods like {@link Session#executeWrite(TransactionCallback)}, {@link Session#executeWriteWithoutResult(Consumer)}
40
40
* and {@link Session#executeRead(TransactionCallback)} (there are also overloaded options available).
67
67
* }
68
68
* }
69
69
* </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>
70
78
*
71
79
* @since 5.5
72
80
*/
You can’t perform that action at this time.
0 commit comments