
com.anwen.mongo.handlers.DocumentHandler Maven / Gradle / Ivy
package com.anwen.mongo.handlers;
import org.bson.Document;
import java.util.List;
/**
* Document处理器,添加和修改会经过这里,可以对添加修改的数据进行进一步修改
* 注:lambdaUpdate().update()并不会经过这里
* @author JiaChaoYang
* @date 2023/11/23 12:50
*/
public interface DocumentHandler {
/**
* 处理Document
* @param document 添加时最终生成的Document
* @author JiaChaoYang
* @date 2023/11/23 12:59
*/
List insertInvoke(List document);
/**
* 处理Document
* @param document 修改时最终生成的Document
* @author JiaChaoYang
* @date 2023/11/23 12:59
*/
List updateInvoke(List document);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy