ecology_maven/aiyh/utils/sqlUtil/builderSql/BuilderSql.java

25 lines
869 B
Java
Raw Normal View History

2021-11-14 15:29:16 +08:00
package aiyh.utils.sqlUtil.builderSql;
import aiyh.utils.sqlUtil.sqlResult.SqlResult;
import aiyh.utils.sqlUtil.whereUtil.Where;
import aiyh.utils.sqlUtil.whereUtil.impl.WhereImpl;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
/**
* @author EBU7-dev1-ay
* @date 2021/8/23 0023 14:27
* Builder sql
*/
public interface BuilderSql {
SqlResult insertSql(String tableName, Map<String,Object> map);
SqlResult insertBatchSql(String tableName, List<LinkedHashMap<String, Object>> mapList);
SqlResult updateSql(String tableName, Map<String,Object> map, Where where);
SqlResult updateBatchSql(String tableName, List<LinkedHashMap<String, Object>> map, List<Where> whereList);
String insertSqlForString(String tableName, Map<String,Object> map);
String updateSqlForString(String tableName, Map<String,Object> map, WhereImpl where);
}