code: public void updateUnique(@NotNull SqlQuery query) {
          int modifiedRows = update(query);
          if (modifiedRows != 1)
              throw new NonUniqueUpdateException(modifiedRows);
      }
docs: Execute an update against the database and assert that a single row will be modified.
  
  @throws NonUniqueUpdateException if zero or more then one rows were updated