Interface ReactiveExecutableStatement
-
- All Superinterfaces:
ExecutableStatement
- All Known Subinterfaces:
ReactiveExecutableResultStatement
@API(status=STABLE, since="2021.2.1") public interface ReactiveExecutableStatement extends ExecutableStatementThis is an extended version of theExecutableStatement, spotting an additionalexecuteWith(RxQueryRunner)that runs a statement in a reactive fashion.The usage of this interface require Project Reactor on the class path with
org.reactivestreamsandreactor.corebeing the corresponding Java modules.- Since:
- 2021.2.1
- Author:
- Michael J. Simons
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description org.reactivestreams.Publisher<org.neo4j.driver.summary.ResultSummary>executeWith(org.neo4j.driver.reactive.RxQueryRunner queryRunner)If the Neo4j Java Driver is on the classpath, this method can be used to pass aRxQueryRunnerto the statement, execute it and retrieve a result summary in a reactive fashion.static ReactiveExecutableResultStatementmakeExecutable(ResultStatement statement)Creates an executable result statement based on the given statementstatic ReactiveExecutableStatementmakeExecutable(Statement statement)Creates an executable statement based on the given statementstatic ReactiveExecutableResultStatementof(ResultStatement statement)Creates an executable result statement based on the given statementstatic ReactiveExecutableStatementof(Statement statement)Creates an executable statement based on the given statement-
Methods inherited from interface org.neo4j.cypherdsl.core.executables.ExecutableStatement
executeWith, executeWith, getCypher, getParameterNames, getParameters
-
-
-
-
Method Detail
-
makeExecutable
static ReactiveExecutableStatement makeExecutable(Statement statement)
Creates an executable statement based on the given statement- Parameters:
statement- Any Cypher-DSL statement- Returns:
- An executable statement. Maybe a
ExecutableResultStatement, depending on the input. - See Also:
of(Statement)
-
makeExecutable
static ReactiveExecutableResultStatement makeExecutable(ResultStatement statement)
Creates an executable result statement based on the given statement- Parameters:
statement- A Cypher-DSL result statement- Returns:
- An executable result statement.
- See Also:
of(ResultStatement)
-
of
static ReactiveExecutableStatement of(Statement statement)
Creates an executable statement based on the given statement- Parameters:
statement- Any Cypher-DSL statement- Returns:
- An executable statement. Maybe a
ExecutableResultStatement, depending on the input. - See Also:
makeExecutable(Statement)
-
of
static ReactiveExecutableResultStatement of(ResultStatement statement)
Creates an executable result statement based on the given statement- Parameters:
statement- A Cypher-DSL result statement- Returns:
- An executable result statement.
- See Also:
makeExecutable(ResultStatement)
-
executeWith
org.reactivestreams.Publisher<org.neo4j.driver.summary.ResultSummary> executeWith(org.neo4j.driver.reactive.RxQueryRunner queryRunner)
If the Neo4j Java Driver is on the classpath, this method can be used to pass aRxQueryRunnerto the statement, execute it and retrieve a result summary in a reactive fashion. This method also requires Project Reactor to be available.All parameters with given values will be passed to the database. Please have a look at
ResultStatementfor further details about parameter conversionsNo resources passed to this method (neither sessions, transactions nor other query runners) will be closed. Resources opened inside the method will be closed.
No statement will be generated and no parameters will be converted unless something subscribes to the result.
- Parameters:
queryRunner- a reactive query runner- Returns:
- A publisher of a result summary (including server information, counters etc).
- Since:
- 2021.2.1
-
-