org.beetl.sql.mapper.internal.ClearFieldsByIdsAMI Maven / Gradle / Ivy
The newest version!
package org.beetl.sql.mapper.internal;
import org.beetl.core.util.ArrayUtils;
import org.beetl.sql.clazz.TableDesc;
import org.beetl.sql.clazz.kit.BeetlSQLException;
import org.beetl.sql.clazz.kit.ListUtil;
import org.beetl.sql.clazz.kit.StringKit;
import org.beetl.sql.core.SQLManager;
import org.beetl.sql.core.SQLReady;
import org.beetl.sql.core.query.LambdaQuery;
import org.beetl.sql.mapper.MapperInvoke;
import java.lang.reflect.Method;
import java.util.List;
import java.util.Set;
/**
* 根据主键将表字段设置为null
*
* @author liumin
*/
public class ClearFieldsByIdsAMI extends MapperInvoke {
@Override
@SuppressWarnings("unchecked")
public Object call(SQLManager sm, Class entityClass, Method m, Object[] args) {
if (!(args[0] instanceof List)) {
throw new BeetlSQLException(BeetlSQLException.MAPPING_ERROR, "期望第一个参数是List");
}
List