public class GeneralMapperSqlInjector
extends com.baomidou.mybatisplus.mapper.AutoSqlInjector
AutoSqlInjector| 限定符和类型 | 类和说明 |
|---|---|
static class |
GeneralMapperSqlInjector.ExtraSqlMethod |
| 构造器和说明 |
|---|
GeneralMapperSqlInjector() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addKeyWord(String... words) |
void |
addKeyWords(Collection<String> words) |
String |
convertKeyWords4Property(String property) |
void |
inject(org.apache.ibatis.session.Configuration configuration,
org.apache.ibatis.builder.MapperBuilderAssistant builderAssistant,
Class<?> mapperClass,
Class<?> modelClass,
com.baomidou.mybatisplus.toolkit.TableInfo table)
CRUD sql inject
|
protected void |
injectDeleteByEWSql(Class<?> mapperClass,
Class<?> modelClass,
com.baomidou.mybatisplus.toolkit.TableInfo table)
删除满足条件的记录
Delete by EntityWrapper 条件:EntityWrapper |
void |
setDBType(com.baomidou.mybatisplus.mapper.DBType dbType) |
protected String |
sqlSelectColumns(com.baomidou.mybatisplus.toolkit.TableInfo table,
boolean entityWrapper) |
addDeleteMappedStatement, addInsertMappedStatement, addMappedStatement, addSelectMappedStatement, addUpdateMappedStatement, convertIfTag, convertIfTag, convertIfTag, convertIfTagInsert, extractModelClass, inject, injectDeleteByMapSql, injectDeleteSelectiveSql, injectDeleteSql, injectInsertBatchSql, injectInsertOneSql, injectSelectByMapSql, injectSelectCountByEWSql, injectSelectCountSql, injectSelectListSql, injectSelectOneSql, injectSelectSql, injectUpdateBatchById, injectUpdateByIdSql, injectUpdateSql, inspectInject, sqlSet, sqlWhere, sqlWhereByMap, sqlWhereEntityWrapperprotected static final Logger logger
public void inject(org.apache.ibatis.session.Configuration configuration,
org.apache.ibatis.builder.MapperBuilderAssistant builderAssistant,
Class<?> mapperClass,
Class<?> modelClass,
com.baomidou.mybatisplus.toolkit.TableInfo table)
inject 在类中 com.baomidou.mybatisplus.mapper.AutoSqlInjectorprotected void injectDeleteByEWSql(Class<?> mapperClass, Class<?> modelClass, com.baomidou.mybatisplus.toolkit.TableInfo table)
mapperClass - table - protected String sqlSelectColumns(com.baomidou.mybatisplus.toolkit.TableInfo table, boolean entityWrapper)
sqlSelectColumns 在类中 com.baomidou.mybatisplus.mapper.AutoSqlInjectorpublic void addKeyWords(Collection<String> words)
public void addKeyWord(String... words)
public void setDBType(com.baomidou.mybatisplus.mapper.DBType dbType)
Copyright © 2017. All rights reserved.