All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.beetl.sql.mapper.internal.SelectByIdsAMI Maven / Gradle / Ivy

The newest version!
package org.beetl.sql.mapper.internal;

import org.beetl.sql.clazz.kit.BeetlSQLException;
import org.beetl.sql.core.SQLManager;
import org.beetl.sql.mapper.MapperInvoke;

import java.lang.reflect.Method;
import java.util.List;

/**
 *
 *
 * @author xiandafu
 */
public class SelectByIdsAMI extends MapperInvoke {

    @Override
    public Object call(SQLManager sm, Class entityClass,  Method m, Object[] args) {
        if(!(args[0] instanceof List)){
            throw new BeetlSQLException(BeetlSQLException.MAPPING_ERROR,"期望第一个参数是List");
        }
        return sm.selectByIds(entityClass, (List)args[0]);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy