
com.anwen.mongo.model.command.CommandSucceeded Maven / Gradle / Ivy
package com.anwen.mongo.model.command;
import com.mongodb.event.CommandSucceededEvent;
import org.bson.BsonDocument;
/**
* @author JiaChaoYang
* @project mongo-plus
* @description 命令成功信息
* @date 2023-11-22 14:27
**/
public class CommandSucceeded extends BaseCommand{
/**
* 执行的结果
* @author JiaChaoYang
* @date 2023/11/22 14:29
*/
private BsonDocument response;
/**
* MongoDB提供,比较全的成功结果
* @author JiaChaoYang
* @date 2023/11/22 14:30
*/
private CommandSucceededEvent commandSucceededEvent;
public BsonDocument getResponse() {
return response;
}
public void setResponse(BsonDocument response) {
this.response = response;
}
public CommandSucceededEvent getCommandSucceededEvent() {
return commandSucceededEvent;
}
public void setCommandSucceededEvent(CommandSucceededEvent commandSucceededEvent) {
this.commandSucceededEvent = commandSucceededEvent;
}
public CommandSucceeded(String commandName, BsonDocument response, CommandSucceededEvent commandSucceededEvent) {
super(commandName);
this.response = response;
this.commandSucceededEvent = commandSucceededEvent;
}
public CommandSucceeded(){
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy