public abstract class AbstractMethod extends Object implements Constants
| 限定符和类型 | 字段和说明 |
|---|---|
protected org.apache.ibatis.builder.MapperBuilderAssistant |
builderAssistant |
protected org.apache.ibatis.session.Configuration |
configuration |
protected org.apache.ibatis.scripting.LanguageDriver |
languageDriver |
COLLECTION, COLUMN_MAP, COLUMN_MAP_IS_EMPTY, ENTITY, ENTITY_DOT, MD5, Q_WRAPPER_SQL_SELECT, U_WRAPPER_SQL_SET, WHERE, WRAPPER, WRAPPER_DOT, WRAPPER_EMPTYOFNORMAL, WRAPPER_EMPTYOFWHERE, WRAPPER_ENTITY, WRAPPER_ENTITY_DOT, WRAPPER_NONEMPTYOFENTITY, WRAPPER_NONEMPTYOFNORMAL, WRAPPER_NONEMPTYOFWHERE, WRAPPER_SQLSEGMENTAMPERSAND, AND, ASTERISK, AT, BACK_SLASH, BACKTICK, BYTES_NEW_LINE, COLON, COMMA, CRLF, DASH, DOLLAR, DOLLAR_LEFT_BRACE, DOT, DOT_CLASS, DOT_JAVA, DOT_XML, DOTDOT, EMPTY, EMPTY_ARRAY, EQUALS, EXCLAMATION_MARK, FALSE, HASH, HASH_LEFT_BRACE, HAT, HTML_AMP, HTML_GT, HTML_LT, HTML_NBSP, HTML_QUOTE, ISO_8859_1, LEFT_BRACE, LEFT_BRACKET, LEFT_CHEV, LEFT_SQ_BRACKET, N, NEWLINE, NO, NULL, OFF, ON, ONE, PERCENT, PIPE, PLUS, QUESTION_MARK, QUOTE, RETURN, RIGHT_BRACE, RIGHT_BRACKET, RIGHT_CHEV, RIGHT_SQ_BRACKET, SEMICOLON, SINGLE_QUOTE, SLASH, SPACE, STAR, TAB, TILDA, TRUE, UNDERSCORE, US_ASCII, UTF_8, Y, YES, ZERO| 构造器和说明 |
|---|
AbstractMethod() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected org.apache.ibatis.mapping.MappedStatement |
addDeleteMappedStatement(Class<?> mapperClass,
String id,
org.apache.ibatis.mapping.SqlSource sqlSource)
删除
|
protected org.apache.ibatis.mapping.MappedStatement |
addInsertMappedStatement(Class<?> mapperClass,
Class<?> modelClass,
String id,
org.apache.ibatis.mapping.SqlSource sqlSource,
org.apache.ibatis.executor.keygen.KeyGenerator keyGenerator,
String keyProperty,
String keyColumn)
插入
|
protected org.apache.ibatis.mapping.MappedStatement |
addMappedStatement(Class<?> mapperClass,
String id,
org.apache.ibatis.mapping.SqlSource sqlSource,
org.apache.ibatis.mapping.SqlCommandType sqlCommandType,
Class<?> parameterClass,
String resultMap,
Class<?> resultType,
org.apache.ibatis.executor.keygen.KeyGenerator keyGenerator,
String keyProperty,
String keyColumn)
添加 MappedStatement 到 Mybatis 容器
|
protected org.apache.ibatis.mapping.MappedStatement |
addSelectMappedStatement(Class<?> mapperClass,
String id,
org.apache.ibatis.mapping.SqlSource sqlSource,
Class<?> resultType,
TableInfo table)
查询
|
protected org.apache.ibatis.mapping.MappedStatement |
addUpdateMappedStatement(Class<?> mapperClass,
Class<?> modelClass,
String id,
org.apache.ibatis.mapping.SqlSource sqlSource)
更新
|
void |
inject(org.apache.ibatis.builder.MapperBuilderAssistant builderAssistant,
Class<?> mapperClass,
Class<?> modelClass,
TableInfo tableInfo)
注入自定义方法
|
abstract org.apache.ibatis.mapping.MappedStatement |
injectMappedStatement(Class<?> mapperClass,
Class<?> modelClass,
TableInfo tableInfo)
注入自定义 MappedStatement
|
protected String |
sqlCount()
SQL 查询记录行数
|
protected String |
sqlSelectColumns(TableInfo table,
boolean queryWrapper)
SQL 查询所有表字段
|
protected String |
sqlSelectObjsColumns(TableInfo table)
SQL 设置selectObj sql select
|
protected String |
sqlSet(boolean logic,
boolean ew,
TableInfo table,
boolean judgeAliasNull,
String alias,
String prefix)
SQL 更新 set 语句
|
protected String |
sqlWhereByMap(TableInfo table)
SQL map 查询条件
|
protected String |
sqlWhereEntityWrapper(boolean newLine,
TableInfo table)
EntityWrapper方式获取select where
|
protected org.apache.ibatis.session.Configuration configuration
protected org.apache.ibatis.scripting.LanguageDriver languageDriver
protected org.apache.ibatis.builder.MapperBuilderAssistant builderAssistant
public void inject(org.apache.ibatis.builder.MapperBuilderAssistant builderAssistant,
Class<?> mapperClass,
Class<?> modelClass,
TableInfo tableInfo)
protected String sqlSet(boolean logic, boolean ew, TableInfo table, boolean judgeAliasNull, String alias, String prefix)
logic - 是否逻辑删除注入器ew - 是否存在 UpdateWrapper 条件table - 表信息alias - 别名prefix - 前缀protected String sqlSelectColumns(TableInfo table, boolean queryWrapper)
table - 表信息queryWrapper - 是否为使用 queryWrapper 查询protected String sqlCount()
protected String sqlSelectObjsColumns(TableInfo table)
table - 表信息protected String sqlWhereEntityWrapper(boolean newLine, TableInfo table)
newLine - 是否提到下一行table - 表信息protected org.apache.ibatis.mapping.MappedStatement addSelectMappedStatement(Class<?> mapperClass, String id, org.apache.ibatis.mapping.SqlSource sqlSource, Class<?> resultType, TableInfo table)
protected org.apache.ibatis.mapping.MappedStatement addInsertMappedStatement(Class<?> mapperClass, Class<?> modelClass, String id, org.apache.ibatis.mapping.SqlSource sqlSource, org.apache.ibatis.executor.keygen.KeyGenerator keyGenerator, String keyProperty, String keyColumn)
protected org.apache.ibatis.mapping.MappedStatement addDeleteMappedStatement(Class<?> mapperClass, String id, org.apache.ibatis.mapping.SqlSource sqlSource)
protected org.apache.ibatis.mapping.MappedStatement addUpdateMappedStatement(Class<?> mapperClass, Class<?> modelClass, String id, org.apache.ibatis.mapping.SqlSource sqlSource)
protected org.apache.ibatis.mapping.MappedStatement addMappedStatement(Class<?> mapperClass, String id, org.apache.ibatis.mapping.SqlSource sqlSource, org.apache.ibatis.mapping.SqlCommandType sqlCommandType, Class<?> parameterClass, String resultMap, Class<?> resultType, org.apache.ibatis.executor.keygen.KeyGenerator keyGenerator, String keyProperty, String keyColumn)