All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.noenv.wiremongo.command.update.UpdateCollectionWithOptionsCommand Maven / Gradle / Ivy

There is a newer version: 4.5.10
Show newest version
package com.noenv.wiremongo.command.update;

import io.vertx.core.json.JsonObject;
import io.vertx.ext.mongo.UpdateOptions;

@SuppressWarnings("squid:MaximumInheritanceDepth")
public class UpdateCollectionWithOptionsCommand extends UpdateCollectionBaseCommand {

  private final UpdateOptions options;

  public UpdateCollectionWithOptionsCommand(String collection, JsonObject query, T update, UpdateOptions options) {
    this("updateCollectionWithOptions", collection, query, update, options);
  }

  public UpdateCollectionWithOptionsCommand(String method, String collection, JsonObject query, T update, UpdateOptions options) {
    super(method, collection, query, update);
    this.options = options;
  }

  public UpdateOptions getOptions() {
    return options;
  }

  @Override
  public String toString() {
    return super.toString() + ", options: " + (options != null ? options.toJson().encode() : "null");
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy