Interface RxQueryRunner

All Known Subinterfaces:
RxSession, RxTransaction
All Known Implementing Classes:
InternalRxSession, InternalRxTransaction

@Deprecated public interface RxQueryRunner
Deprecated.
Common interface for components that can execute Neo4j queries using Reactive API.
Since:
4.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    static Value
    Deprecated.
    Creates a value from a map instance.
    static Value
    Deprecated.
    Creates a value from a record instance.
    default RxResult
    run(String query)
    Deprecated.
    Register running of a query and return a reactive result stream.
    default RxResult
    run(String query, Map<String,Object> parameters)
    Deprecated.
    Register running of a query and return a reactive result stream.
    default RxResult
    run(String query, Record parameters)
    Deprecated.
    Register running of a query and return a reactive result stream.
    default RxResult
    run(String query, Value parameters)
    Deprecated.
    Register running of a query and return a reactive result stream.
    run(Query query)
    Deprecated.
    Register running of a query and return a reactive result stream.
  • Method Details

    • run

      default RxResult run(String query, Value parameters)
      Deprecated.
      Register running of a query and return a reactive result stream. The query is not executed when the reactive result is returned. Instead, the publishers in the result will actually start the execution of the query.

      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, run(String, Map) might be more helpful, it converts your map to a Value for you.

      Parameters:
      query - text of a Neo4j query
      parameters - input parameters, should be a map Value, see Values.parameters(Object...).
      Returns:
      a reactive result.
    • run

      default RxResult run(String query, Map<String,Object> parameters)
      Deprecated.
      Register running of a query and return a reactive result stream. The query is not executed when the reactive result is returned. Instead, the publishers in the result will actually start the execution of the query.

      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. See Values.parameters(Object...) for a list of allowed types.

      Parameters:
      query - text of a Neo4j query
      parameters - input data for the query
      Returns:
      a reactive result.
    • run

      default RxResult run(String query, Record parameters)
      Deprecated.
      Register running of a query and return a reactive result stream. The query is not executed when the reactive result is returned. Instead, the publishers in the result will actually start the execution of the query.

      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.

      Parameters:
      query - text of a Neo4j query
      parameters - input data for the query
      Returns:
      a reactive result.
    • run

      default RxResult run(String query)
      Deprecated.
      Register running of a query and return a reactive result stream. The query is not executed when the reactive result is returned. Instead, the publishers in the result will actually start the execution of the query.
      Parameters:
      query - text of a Neo4j query
      Returns:
      a reactive result.
    • run

      RxResult run(Query query)
      Deprecated.
      Register running of a query and return a reactive result stream. The query is not executed when the reactive result is returned. Instead, the publishers in the result will actually start the execution of the query.
      Parameters:
      query - a Neo4j query
      Returns:
      a reactive result.
    • parameters

      static Value parameters(Record record)
      Deprecated.
      Creates a value from a record instance.
      Parameters:
      record - the record
      Returns:
      the value
    • parameters

      static Value parameters(Map<String,Object> map)
      Deprecated.
      Creates a value from a map instance.
      Parameters:
      map - the map
      Returns:
      the value