com.noenv.wiremongo.mapping.update.UpdateCollection 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.mapping.update;
import com.noenv.wiremongo.command.update.UpdateCollectionBaseCommand;
import io.vertx.core.json.JsonObject;
import io.vertx.ext.mongo.MongoClientUpdateResult;
@SuppressWarnings("squid:MaximumInheritanceDepth")
public class UpdateCollection extends UpdateCollectionBase, UpdateCollection> {
public UpdateCollection() {
this("updateCollection");
}
public UpdateCollection(String method) {
super(method);
}
public UpdateCollection(JsonObject json) {
super(json);
}
@Override
protected MongoClientUpdateResult parseResponse(Object jsonValue) {
return new MongoClientUpdateResult((JsonObject) jsonValue);
}
}