com.noenv.wiremongo.command.find.FindOneAndReplaceWithOptionsCommand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vertx-wiremongo Show documentation
Show all versions of vertx-wiremongo Show documentation
Lightweight mongo mocking for Vert.x
package com.noenv.wiremongo.command.find;
import io.vertx.core.json.JsonObject;
import io.vertx.ext.mongo.FindOptions;
import io.vertx.ext.mongo.UpdateOptions;
@SuppressWarnings("squid:MaximumInheritanceDepth")
public class FindOneAndReplaceWithOptionsCommand extends FindOneAndReplaceBaseCommand {
private final FindOptions findOptions;
private final UpdateOptions updateOptions;
public FindOneAndReplaceWithOptionsCommand(String collection, JsonObject query, JsonObject replace,
FindOptions findOptions, UpdateOptions updateOptions) {
super("findOneAndReplaceWithOptions", collection, query, replace);
this.findOptions = findOptions;
this.updateOptions = updateOptions;
}
public FindOptions getFindOptions() {
return findOptions;
}
public UpdateOptions getUpdateOptions() {
return updateOptions;
}
@Override
public String toString() {
return super.toString() + ", findOptions: " + (findOptions != null ? findOptions.toJson().encode() : "null")
+ ", updateOptions: " + (updateOptions != null ? updateOptions.toJson().encode() : "null");
}
}