Interface Stage.MutationQuery

    • Method Detail

      • executeUpdate

        java.util.concurrent.CompletionStage<java.lang.Integer> executeUpdate()
        Asynchronously execute this delete, update, or insert query, returning the updated row count.
        Returns:
        the row count as an integer
        See Also:
        Query.executeUpdate()
      • setParameter

        Stage.MutationQuery setParameter​(int parameter,
                                         java.lang.Object argument)
        Description copied from interface: Stage.AbstractQuery
        Set the value of an ordinal parameter. Ordinal parameters are numbered from 1, and are specified in the query using placeholder tokens of form ?1, ?2, etc.
        Specified by:
        setParameter in interface Stage.AbstractQuery
        Parameters:
        parameter - an integer identifying the ordinal parameter
        argument - the argument to set
      • setParameter

        Stage.MutationQuery setParameter​(java.lang.String parameter,
                                         java.lang.Object argument)
        Description copied from interface: Stage.AbstractQuery
        Set the value of a named parameter. Named parameters are specified in the query using placeholder tokens of form :name.
        Specified by:
        setParameter in interface Stage.AbstractQuery
        Parameters:
        parameter - the name of the parameter
        argument - the argument to set
      • setComment

        Stage.MutationQuery setComment​(java.lang.String comment)
        Description copied from interface: Stage.AbstractQuery
        Set the comment for this query. This comment will be prepended to the SQL query sent to the database.
        Specified by:
        setComment in interface Stage.AbstractQuery
        Parameters:
        comment - The human-readable comment