| 程序包 | 说明 |
|---|---|
| com.baomidou.mybatisplus |
mybatis-plus 对 mybatis 功能增强,使之用起来更加顺手。
|
| com.baomidou.mybatisplus.mapper |
自动处理 CURD 基本 SQL 相关类
|
| com.baomidou.mybatisplus.toolkit |
工具包类
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected static Object |
MybatisDefaultParameterHandler.populateKeys(TableInfo tableInfo,
org.apache.ibatis.mapping.MappedStatement ms,
Object parameterObject)
填充主键 ID
|
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.ibatis.mapping.MappedStatement |
AutoSqlInjector.addSelectMappedStatement(Class<?> mapperClass,
String id,
org.apache.ibatis.mapping.SqlSource sqlSource,
Class<?> resultType,
TableInfo table) |
void |
AutoSqlInjector.inject(org.apache.ibatis.session.Configuration configuration,
org.apache.ibatis.builder.MapperBuilderAssistant builderAssistant,
Class<?> mapperClass,
Class<?> modelClass,
TableInfo table)
自定义方法,注入点(子类需重写该方法)
|
protected void |
AutoSqlInjector.injectDeleteByMapSql(Class<?> mapperClass,
TableInfo table)
注入 map 条件删除 SQL 语句
|
protected void |
AutoSqlInjector.injectDeleteSelectiveSql(Class<?> mapperClass,
Class<?> modelClass,
TableInfo table)
注入 entity 条件删除 SQL 语句
|
protected void |
AutoSqlInjector.injectDeleteSql(boolean batch,
Class<?> mapperClass,
Class<?> modelClass,
TableInfo table)
注入删除 SQL 语句
|
protected void |
AutoSqlInjector.injectInsertBatchSql(Class<?> mapperClass,
Class<?> modelClass,
TableInfo table)
注入批量插入 SQL 语句
|
protected void |
AutoSqlInjector.injectInsertOneSql(boolean selective,
Class<?> mapperClass,
Class<?> modelClass,
TableInfo table)
注入插入 SQL 语句
|
protected void |
AutoSqlInjector.injectSelectByMapSql(Class<?> mapperClass,
Class<?> modelClass,
TableInfo table)
注入 map 查询 SQL 语句
|
protected void |
AutoSqlInjector.injectSelectCountByEWSql(SqlMethod sqlMethod,
Class<?> mapperClass,
Class<?> modelClass,
TableInfo table)
注入EntityWrapper查询总记录数 SQL 语句
|
protected void |
AutoSqlInjector.injectSelectCountSql(Class<?> mapperClass,
Class<?> modelClass,
TableInfo table)
注入实体查询总记录数 SQL 语句
|
protected void |
AutoSqlInjector.injectSelectListSql(SqlMethod sqlMethod,
Class<?> mapperClass,
Class<?> modelClass,
TableInfo table)
注入EntityWrapper方式查询记录列表 SQL 语句
|
protected void |
AutoSqlInjector.injectSelectOneSql(Class<?> mapperClass,
Class<?> modelClass,
TableInfo table)
注入实体查询一条记录 SQL 语句
|
protected void |
AutoSqlInjector.injectSelectSql(boolean batch,
Class<?> mapperClass,
Class<?> modelClass,
TableInfo table)
注入查询 SQL 语句
|
protected void |
AutoSqlInjector.injectUpdateBatchById(Class<?> mapperClass,
Class<?> modelClass,
TableInfo table)
注入批量更新 SQL 语句
|
protected void |
AutoSqlInjector.injectUpdateByIdSql(boolean selective,
Class<?> mapperClass,
Class<?> modelClass,
TableInfo table)
注入更新 SQL 语句
|
protected void |
AutoSqlInjector.injectUpdateSql(boolean selective,
Class<?> mapperClass,
Class<?> modelClass,
TableInfo table)
注入批量更新 SQL 语句
|
protected String |
AutoSqlInjector.sqlSelectColumns(TableInfo table,
boolean entityWrapper)
SQL 查询所有表字段
|
protected String |
AutoSqlInjector.sqlSet(boolean selective,
TableInfo table)
SQL 更新 set 语句
|
protected String |
AutoSqlInjector.sqlWhere(TableInfo table,
boolean space)
SQL 查询条件
|
protected String |
AutoSqlInjector.sqlWhereEntityWrapper(TableInfo table)
EntityWrapper方式获取select where
|
| 限定符和类型 | 方法和说明 |
|---|---|
static TableInfo |
TableInfoHelper.getTableInfo(Class<?> clazz)
获取实体映射表信息
|
static TableInfo |
TableInfoHelper.initTableInfo(Class<?> clazz)
实体类反射获取表信息【初始化】
|
Copyright © 2016. All rights reserved.