Interface ReactiveSession

    • Method Detail

      • executeReactive

        @NonNull
        default ReactiveResultSet executeReactive​(@NonNull
                                                  String query)
        Returns a Publisher that, once subscribed to, executes the given query and emits all the results.

        This is an alias for executeReactive(Statement) executeReactive(SimpleStatement.newInstance(query))}.

        Parameters:
        query - the query to execute.
        Returns:
        The Publisher that will publish the returned results.
        See Also:
        SimpleStatement.newInstance(String)
      • executeReactive

        @NonNull
        default ReactiveResultSet executeReactive​(@NonNull
                                                  String query,
                                                  @NonNull
                                                  Object... values)
        Returns a Publisher that, once subscribed to, executes the given query and emits all the results.

        This is an alias for executeReactive(Statement) executeReactive(SimpleStatement.newInstance(query, values))}.

        Parameters:
        query - the query to execute.
        values - the values for placeholders in the query string. Individual values can be null, but the vararg array itself can't.
        Returns:
        The Publisher that will publish the returned results.
        See Also:
        SimpleStatement.newInstance(String,Object...)
      • executeReactive

        @NonNull
        default ReactiveResultSet executeReactive​(@NonNull
                                                  String query,
                                                  @NonNull
                                                  Map<String,​Object> values)
        Returns a Publisher that, once subscribed to, executes the given query and emits all the results.

        This is an alias for executeReactive(Statement) executeReactive(SimpleStatement.newInstance(query,values))}.

        Parameters:
        query - the query to execute.
        values - the values for named placeholders in the query string. Individual values can be null, but the map itself can't.
        Returns:
        The Publisher that will publish the returned results.
        See Also:
        SimpleStatement.newInstance(String,Map)
      • executeReactive

        @NonNull
        default ReactiveResultSet executeReactive​(@NonNull
                                                  Statement<?> statement)
        Returns a Publisher that, once subscribed to, executes the given query and emits all the results.
        Parameters:
        statement - the statement to execute.
        Returns:
        The Publisher that will publish the returned results.