org.noear.wood.mapper.IMapperAdaptor Maven / Gradle / Ivy
package org.noear.wood.mapper;
import org.noear.wood.BaseMapper;
import org.noear.wood.DbContext;
import org.noear.wood.DbProcedure;
import java.util.Map;
/**
* Mapper 能力适配器
*
* @author noear
* @since 1.1
*/
public interface IMapperAdaptor {
/**
* 生成 xml 处理器
*/
DbProcedure createXmlProcedure(DbContext db, String process, Map args);
/**
* 生成 BaseMapper
*/
BaseMapper createMapperBase(DbContext db, Class clz, String tableName);
/**
* 生成 Mapper
*/
T createMapper(DbContext db, Class clz);
/**
* 生成 Mapper
*/
T createMapper(DbContext db, String xsqlid, Map args) throws Exception;
}