Class DelegatingReactiveTransactionContext
- All Implemented Interfaces:
ReactiveQueryRunner
,ReactiveTransactionContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.reactivestreams.Publisher<ReactiveResult>
Register running of a query and return a publisher ofReactiveResult
.org.reactivestreams.Publisher<ReactiveResult>
Register running of a query and return a publisher ofReactiveResult
.org.reactivestreams.Publisher<ReactiveResult>
Register running of a query and return a publisher ofReactiveResult
.org.reactivestreams.Publisher<ReactiveResult>
Register running of a query and return a publisher ofReactiveResult
.org.reactivestreams.Publisher<ReactiveResult>
Register running of a query and return a publisher ofReactiveResult
.
-
Constructor Details
-
DelegatingReactiveTransactionContext
-
-
Method Details
-
run
Description copied from interface:ReactiveQueryRunner
Register running of a query and return a publisher ofReactiveResult
.Invoking this method will result in a Bolt RUN message exchange with server and the returned publisher will either emit an instance of
ReactiveResult
on success or an error otherwise.This method takes a set of parameters that will be injected into the query by Neo4j. Using parameters is highly encouraged, it helps avoid dangerous cypher injection attacks and improves database performance as Neo4j can re-use query plans more often.
This particular method takes a
Value
as its input. This is useful if you want to take a map-like value that you've gotten from a prior result and send it back as parameters.If you are creating parameters programmatically,
ReactiveQueryRunner.run(String, Map)
might be more helpful, it converts your map to aValue
for you.- Specified by:
run
in interfaceReactiveQueryRunner
- Parameters:
query
- text of a Neo4j queryparameters
- input parameters, should be a map Value, seeValues.parameters(Object...)
.- Returns:
- a publisher of reactive result.
-
run
public org.reactivestreams.Publisher<ReactiveResult> run(String query, Map<String, Object> parameters) Description copied from interface:ReactiveQueryRunner
Register running of a query and return a publisher ofReactiveResult
.Invoking this method will result in a Bolt RUN message exchange with server and the returned publisher will either emit an instance of
ReactiveResult
on success or an error otherwise.This method takes a set of parameters that will be injected into the query by Neo4j. Using parameters is highly encouraged, it helps avoid dangerous cypher injection attacks and improves database performance as Neo4j can re-use query plans more often.
This version of run takes a
Map
of parameters. The values in the map must be values that can be converted to Neo4j types. SeeValues.parameters(Object...)
for a list of allowed types.- Specified by:
run
in interfaceReactiveQueryRunner
- Parameters:
query
- text of a Neo4j queryparameters
- input data for the query- Returns:
- a publisher of reactive result.
-
run
Description copied from interface:ReactiveQueryRunner
Register running of a query and return a publisher ofReactiveResult
.Invoking this method will result in a Bolt RUN message exchange with server and the returned publisher will either emit an instance of
ReactiveResult
on success or an error otherwise.This method takes a set of parameters that will be injected into the query by Neo4j. Using parameters is highly encouraged, it helps avoid dangerous cypher injection attacks and improves database performance as Neo4j can re-use query plans more often.
This version of run takes a
Record
of parameters, which can be useful if you want to use the output of one query as input for another.- Specified by:
run
in interfaceReactiveQueryRunner
- Parameters:
query
- text of a Neo4j queryparameters
- input data for the query- Returns:
- a publisher of reactive result.
-
run
Description copied from interface:ReactiveQueryRunner
Register running of a query and return a publisher ofReactiveResult
.Invoking this method will result in a Bolt RUN message exchange with server and the returned publisher will either emit an instance of
ReactiveResult
on success or an error otherwise.- Specified by:
run
in interfaceReactiveQueryRunner
- Parameters:
query
- text of a Neo4j query- Returns:
- a publisher of reactive result.
-
run
Description copied from interface:ReactiveQueryRunner
Register running of a query and return a publisher ofReactiveResult
.Invoking this method will result in a Bolt RUN message exchange with server and the returned publisher will either emit an instance of
ReactiveResult
on success or an error otherwise.- Specified by:
run
in interfaceReactiveQueryRunner
- Parameters:
query
- a Neo4j query- Returns:
- a publisher of reactive result.
-