- GeneratedCriteria(Map<String, EntityColumn>, boolean, boolean) - Constructor for class tk.mybatis.mapper.entity.Example.GeneratedCriteria
-
- GenId<T> - Interface in tk.mybatis.mapper.genid
-
不提供具体的实现,这里提供一个思路。
- genId(String, String) - Method in interface tk.mybatis.mapper.genid.GenId
-
- genId(String, String) - Method in class tk.mybatis.mapper.genid.GenId.NULL
-
- genId(Object, String, Class<? extends GenId>, String, String) - Static method in class tk.mybatis.mapper.genid.GenIdUtil
-
生成 Id
- GenId.NULL - Class in tk.mybatis.mapper.genid
-
- GenIdUtil - Class in tk.mybatis.mapper.genid
-
- GenIdUtil() - Constructor for class tk.mybatis.mapper.genid.GenIdUtil
-
- GenSql - Interface in tk.mybatis.mapper.gensql
-
生成 SQL,初始化时执行
- genSql(EntityTable, EntityColumn) - Method in interface tk.mybatis.mapper.gensql.GenSql
-
- genSql(EntityTable, EntityColumn) - Method in class tk.mybatis.mapper.gensql.GenSql.NULL
-
- GenSql.NULL - Class in tk.mybatis.mapper.gensql
-
- getAll(Class<?>) - Static method in class tk.mybatis.mapper.mapperhelper.FieldHelper
-
获取全部的属性,包含字段和方法
- getAllColumns(Class<?>) - Static method in class tk.mybatis.mapper.mapperhelper.SqlHelper
-
获取所有查询列,如id,name,code...
- getAllCriteria() - Method in class tk.mybatis.mapper.entity.Example.GeneratedCriteria
-
- getAndOr() - Method in class tk.mybatis.mapper.entity.Example.Criterion
-
- getAndOr() - Method in class tk.mybatis.mapper.entity.Example.GeneratedCriteria
-
- getAndOr() - Method in class tk.mybatis.mapper.util.Sqls.Criteria
-
- getAndOr() - Method in class tk.mybatis.mapper.util.Sqls.Criterion
-
- getAnnotation(Class<T>) - Method in class tk.mybatis.mapper.entity.EntityField
-
获取指定的注解
- getBaseSelect() - Method in class tk.mybatis.mapper.entity.EntityTable
-
- getBindCache(EntityColumn) - Static method in class tk.mybatis.mapper.mapperhelper.SqlHelper
-
- getBindValue(EntityColumn, String) - Static method in class tk.mybatis.mapper.mapperhelper.SqlHelper
-
- getCatalog() - Method in class tk.mybatis.mapper.entity.Config
-
- getCatalog() - Method in class tk.mybatis.mapper.entity.EntityTable
-
- getColumn() - Method in class tk.mybatis.mapper.entity.EntityColumn
-
- getColumnEqualsHolder(String) - Method in class tk.mybatis.mapper.entity.EntityColumn
-
返回格式如:colum = #{entityName.age,jdbcType=NUMERIC,typeHandler=MyTypeHandler}
- getColumnEqualsHolder() - Method in class tk.mybatis.mapper.entity.EntityColumn
-
返回格式如:colum = #{age,jdbcType=NUMERIC,typeHandler=MyTypeHandler}
- getColumnHolder(String) - Method in class tk.mybatis.mapper.entity.EntityColumn
-
返回格式如:#{entityName.age,jdbcType=NUMERIC,typeHandler=MyTypeHandler}
- getColumnHolder(String, String) - Method in class tk.mybatis.mapper.entity.EntityColumn
-
返回格式如:#{entityName.age+suffix,jdbcType=NUMERIC,typeHandler=MyTypeHandler}
- getColumnHolder(String, String, String) - Method in class tk.mybatis.mapper.entity.EntityColumn
-
返回格式如:#{entityName.age+suffix,jdbcType=NUMERIC,typeHandler=MyTypeHandler}+separator
- getColumnHolder() - Method in class tk.mybatis.mapper.entity.EntityColumn
-
返回格式如:#{age,jdbcType=NUMERIC,typeHandler=MyTypeHandler}
- getColumnHolderWithComma(String, String) - Method in class tk.mybatis.mapper.entity.EntityColumn
-
返回格式如:#{entityName.age+suffix,jdbcType=NUMERIC,typeHandler=MyTypeHandler},
- getColumns(Class<?>) - Static method in class tk.mybatis.mapper.mapperhelper.EntityHelper
-
获取全部列
- getCondition() - Method in class tk.mybatis.mapper.entity.Example.Criterion
-
- getCondition() - Method in class tk.mybatis.mapper.util.Sqls.Criterion
-
- getConfig() - Method in class tk.mybatis.mapper.mapperhelper.MapperHelper
-
获取通用Mapper配置
- getConfig() - Method in class tk.mybatis.mapper.mapperhelper.MapperTemplate
-
- getCountColumn() - Method in class tk.mybatis.mapper.entity.Example
-
- getCriteria() - Method in class tk.mybatis.mapper.entity.Example.GeneratedCriteria
-
- getCriteria() - Method in interface tk.mybatis.mapper.entity.SqlsCriteria
-
- getCriteria() - Method in class tk.mybatis.mapper.util.Sqls
-
- getCriterions() - Method in class tk.mybatis.mapper.util.Sqls.Criteria
-
- getDatabaseDialect(String) - Static method in enum tk.mybatis.mapper.code.IdentityDialect
-
- getDynamicTableName() - Method in class tk.mybatis.mapper.entity.Example
-
- getDynamicTableName() - Method in interface tk.mybatis.mapper.entity.IDynamicTableName
-
获取动态表名 - 只要有返回值,不是null和'',就会用返回值作为表名
- getDynamicTableName(Class<?>, String) - Static method in class tk.mybatis.mapper.mapperhelper.SqlHelper
-
获取表名 - 支持动态表名
- getDynamicTableName(Class<?>, String, String) - Static method in class tk.mybatis.mapper.mapperhelper.SqlHelper
-
获取表名 - 支持动态表名,该方法用于多个入参时,通过parameterName指定入参中实体类的@Param的注解值
- getEntityClass() - Method in class tk.mybatis.mapper.entity.EntityTable
-
- getEntityClass() - Method in class tk.mybatis.mapper.entity.Example
-
- getEntityClass(MappedStatement) - Method in class tk.mybatis.mapper.mapperhelper.MapperTemplate
-
获取返回值类型 - 实体类型
- getEntityClassColumns() - Method in class tk.mybatis.mapper.entity.EntityTable
-
- getEntityClassPKColumns() - Method in class tk.mybatis.mapper.entity.EntityTable
-
- getEntityField() - Method in class tk.mybatis.mapper.entity.EntityColumn
-
- getEntityTable(Class<?>) - Static method in class tk.mybatis.mapper.mapperhelper.EntityHelper
-
获取表对象
- getFields(Class<?>) - Static method in class tk.mybatis.mapper.mapperhelper.FieldHelper
-
获取全部的Field
- getGenerator() - Method in class tk.mybatis.mapper.entity.EntityColumn
-
- getGenIdClass() - Method in class tk.mybatis.mapper.entity.EntityColumn
-
- getIDENTITY() - Method in class tk.mybatis.mapper.entity.Config
-
获取主键自增回写SQL
- getIdentity() - Method in class tk.mybatis.mapper.entity.Config
-
- getIDENTITY(EntityColumn) - Method in class tk.mybatis.mapper.mapperhelper.MapperTemplate
-
获取IDENTITY值的表达式
- getIDENTITY() - Method in class tk.mybatis.mapper.mapperhelper.MapperTemplate
-
- getIdentityRetrievalStatement() - Method in enum tk.mybatis.mapper.code.IdentityDialect
-
- getIfCacheIsNull(EntityColumn, String) - Static method in class tk.mybatis.mapper.mapperhelper.SqlHelper
-
如果_cache == null
- getIfCacheNotNull(EntityColumn, String) - Static method in class tk.mybatis.mapper.mapperhelper.SqlHelper
-
- getIfIsNull(EntityColumn, String, boolean) - Static method in class tk.mybatis.mapper.mapperhelper.SqlHelper
-
判断自动==null的条件结构
- getIfIsNull(String, EntityColumn, String, boolean) - Static method in class tk.mybatis.mapper.mapperhelper.SqlHelper
-
判断自动==null的条件结构
- getIfNotNull(EntityColumn, String, boolean) - Static method in class tk.mybatis.mapper.mapperhelper.SqlHelper
-
判断自动!=null的条件结构
- getIfNotNull(String, EntityColumn, String, boolean) - Static method in class tk.mybatis.mapper.mapperhelper.SqlHelper
-
判断自动!=null的条件结构
- getInstance(Class<?>, Class<?>) - Method in class tk.mybatis.mapper.entity.EntityTable
-
实例化TypeHandler
- getJavaType() - Method in class tk.mybatis.mapper.entity.EntityColumn
-
- getJavaType() - Method in class tk.mybatis.mapper.entity.EntityField
-
获取javaType
- getJdbcType() - Method in class tk.mybatis.mapper.entity.EntityColumn
-
- getKeyColumns() - Method in class tk.mybatis.mapper.entity.EntityTable
-
- getKeyProperties() - Method in class tk.mybatis.mapper.entity.EntityTable
-
- getLogicDeleteColumn(Class<?>) - Static method in class tk.mybatis.mapper.mapperhelper.SqlHelper
-
获取逻辑删除注解的列,若没有返回null
- getLogicDeletedValue(EntityColumn, boolean) - Static method in class tk.mybatis.mapper.mapperhelper.SqlHelper
-
获取逻辑删除注解的参数值
- getMapperClass(String) - Static method in class tk.mybatis.mapper.util.MsUtil
-
根据msId获取接口类
- getMappers() - Method in class tk.mybatis.mapper.entity.Config
-
- getMapperTemplateByMsId(String) - Method in class tk.mybatis.mapper.mapperhelper.MapperHelper
-
根据 msId 获取 MapperTemplate
- getMethodName(MappedStatement) - Static method in class tk.mybatis.mapper.util.MsUtil
-
获取执行的方法名
- getMethodName(String) - Static method in class tk.mybatis.mapper.util.MsUtil
-
获取执行的方法名
- getName() - Method in class tk.mybatis.mapper.entity.EntityField
-
字段属性名
- getName() - Method in class tk.mybatis.mapper.entity.EntityTable
-
- getOrder() - Method in class tk.mybatis.mapper.entity.EntityColumn
-
- getOrderBy() - Method in class tk.mybatis.mapper.entity.EntityColumn
-
- getOrderByClause() - Method in class tk.mybatis.mapper.entity.EntityTable
-
- getOrderByClause() - Method in class tk.mybatis.mapper.entity.Example
-
- getOrderByClause(Class<?>) - Static method in class tk.mybatis.mapper.mapperhelper.EntityHelper
-
获取默认的orderby语句
- getOrderPriority() - Method in class tk.mybatis.mapper.entity.EntityColumn
-
- getOredCriteria() - Method in class tk.mybatis.mapper.entity.Example
-
- getPKColumns(Class<?>) - Static method in class tk.mybatis.mapper.mapperhelper.EntityHelper
-
获取主键信息
- getPrefix() - Method in class tk.mybatis.mapper.entity.Config
-
获取表前缀,带catalog或schema
- getPrefix() - Method in class tk.mybatis.mapper.entity.EntityTable
-
- getProperties(Class<?>) - Static method in class tk.mybatis.mapper.mapperhelper.FieldHelper
-
获取全部的属性,通过方法名获取
- getProperty() - Method in class tk.mybatis.mapper.entity.EntityColumn
-
- getProperty() - Method in class tk.mybatis.mapper.util.Sqls.Criterion
-
- getPropertyMap() - Method in class tk.mybatis.mapper.entity.EntityTable
-
- getPropertyMap() - Method in class tk.mybatis.mapper.entity.Example
-
- getResolveClass() - Method in class tk.mybatis.mapper.entity.Config
-
- getResultMap(Configuration) - Method in class tk.mybatis.mapper.entity.EntityTable
-
生成当前实体的resultMap对象
- getSchema() - Method in class tk.mybatis.mapper.entity.Config
-
- getSchema() - Method in class tk.mybatis.mapper.entity.EntityTable
-
- getSecondValue() - Method in class tk.mybatis.mapper.entity.Example.Criterion
-
- getSecondValue() - Method in class tk.mybatis.mapper.util.Sqls.Criterion
-
- getSelectColumns() - Method in class tk.mybatis.mapper.entity.Example
-
- getSelectColumns(Class<?>) - Static method in class tk.mybatis.mapper.mapperhelper.EntityHelper
-
获取查询的Select
- getSeqFormat() - Method in class tk.mybatis.mapper.entity.Config
-
获取序列格式化模板
- getStyle() - Method in class tk.mybatis.mapper.entity.Config
-
- getTable() - Method in class tk.mybatis.mapper.entity.EntityColumn
-
- getTypeHandler() - Method in class tk.mybatis.mapper.entity.EntityColumn
-
- getTypeHandler() - Method in class tk.mybatis.mapper.entity.Example.Criterion
-
- getValue(Object) - Method in class tk.mybatis.mapper.entity.EntityField
-
反射获取值
- getValue() - Method in class tk.mybatis.mapper.entity.Example.Criterion
-
- getValue() - Method in class tk.mybatis.mapper.util.Sqls.Criterion
-
- getValues() - Method in class tk.mybatis.mapper.util.Sqls.Criterion
-
- getWrapKeyword() - Method in class tk.mybatis.mapper.entity.Config
-
- SAFE_DELETE_ERROR - Static variable in class tk.mybatis.mapper.util.OGNL
-
- SAFE_DELETE_EXCEPTION - Static variable in class tk.mybatis.mapper.util.OGNL
-
- select(String...) - Method in class tk.mybatis.mapper.entity.Example.Builder
-
- SELECT_KEY_SUFFIX - Static variable in class tk.mybatis.mapper.mapperhelper.SelectKeyGenerator
-
- selectAllColumns(Class<?>) - Static method in class tk.mybatis.mapper.mapperhelper.SqlHelper
-
select xxx,xxx...
- selectColumns - Variable in class tk.mybatis.mapper.entity.Example
-
- selectCount(Class<?>) - Static method in class tk.mybatis.mapper.mapperhelper.SqlHelper
-
select count(x)
- selectCountExists(Class<?>) - Static method in class tk.mybatis.mapper.mapperhelper.SqlHelper
-
select case when count(x) > 0 then 1 else 0 end
- selectDistinct(String...) - Method in class tk.mybatis.mapper.entity.Example.Builder
-
- SelectKeyGenerator - Class in tk.mybatis.mapper.mapperhelper
-
- SelectKeyGenerator(MappedStatement, boolean) - Constructor for class tk.mybatis.mapper.mapperhelper.SelectKeyGenerator
-
- SelectKeyHelper - Class in tk.mybatis.mapper.mapperhelper
-
创建 selectKey
- SelectKeyHelper() - Constructor for class tk.mybatis.mapper.mapperhelper.SelectKeyHelper
-
- selectProperties(String...) - Method in class tk.mybatis.mapper.entity.Example
-
指定要查询的属性列 - 这里会自动映射到表字段
- setAndOr(String) - Method in class tk.mybatis.mapper.entity.Example.Criterion
-
- setAndOr(String) - Method in class tk.mybatis.mapper.entity.Example.GeneratedCriteria
-
- setAndOr(String) - Method in class tk.mybatis.mapper.util.Sqls.Criteria
-
- setBaseSelect(String) - Method in class tk.mybatis.mapper.entity.EntityTable
-
- setBEFORE(boolean) - Method in class tk.mybatis.mapper.entity.Config
-
- setBefore(boolean) - Method in class tk.mybatis.mapper.entity.Config
-
- setBlob(boolean) - Method in class tk.mybatis.mapper.entity.EntityColumn
-
- setCatalog(String) - Method in class tk.mybatis.mapper.entity.Config
-
设置全局的catalog,默认为空,如果设置了值,操作表时的sql会是catalog.tablename
- setCatalog(String) - Method in class tk.mybatis.mapper.entity.EntityTable
-
- setCheckExampleEntityClass(boolean) - Method in class tk.mybatis.mapper.entity.Config
-
- setColumn(String) - Method in class tk.mybatis.mapper.entity.EntityColumn
-
- setConfig(Config) - Method in class tk.mybatis.mapper.mapperhelper.MapperHelper
-
设置通用Mapper配置
- setConfig(Config) - Method in class tk.mybatis.mapper.session.Configuration
-
使用 Config 配置
- setCountProperty(String) - Method in class tk.mybatis.mapper.entity.Example
-
指定 count(property) 查询属性
- setDistinct(boolean) - Method in class tk.mybatis.mapper.entity.Example.Builder
-
- setDistinct(boolean) - Method in class tk.mybatis.mapper.entity.Example
-
- setEnableMethodAnnotation(boolean) - Method in class tk.mybatis.mapper.entity.Config
-
- setEntityClassColumns(LinkedHashSet<EntityColumn>) - Method in class tk.mybatis.mapper.entity.EntityTable
-
- setEntityClassPKColumns(LinkedHashSet<EntityColumn>) - Method in class tk.mybatis.mapper.entity.EntityTable
-
- setEntityField(EntityField) - Method in class tk.mybatis.mapper.entity.EntityColumn
-
- setEnumAsSimpleType(boolean) - Method in class tk.mybatis.mapper.entity.Config
-
- setForUpdate(boolean) - Method in class tk.mybatis.mapper.entity.Example.Builder
-
- setForUpdate(boolean) - Method in class tk.mybatis.mapper.entity.Example
-
- setGenerator(String) - Method in class tk.mybatis.mapper.entity.EntityColumn
-
- setGenIdClass(Class<? extends GenId>) - Method in class tk.mybatis.mapper.entity.EntityColumn
-
- setId(boolean) - Method in class tk.mybatis.mapper.entity.EntityColumn
-
- setIDENTITY(String) - Method in class tk.mybatis.mapper.entity.Config
-
主键自增回写方法,默认值MYSQL,详细说明请看文档
- setIdentity(String) - Method in class tk.mybatis.mapper.entity.Config
-
- setIdentity(boolean) - Method in class tk.mybatis.mapper.entity.EntityColumn
-
- setInsertable(boolean) - Method in class tk.mybatis.mapper.entity.EntityColumn
-
- setJavaType(Class<?>) - Method in class tk.mybatis.mapper.entity.EntityColumn
-
- setJavaType(Class<?>) - Method in class tk.mybatis.mapper.entity.EntityField
-
设置javaType
- setJdbcType(JdbcType) - Method in class tk.mybatis.mapper.entity.EntityColumn
-
- setKeyColumns(String) - Method in class tk.mybatis.mapper.entity.EntityTable
-
- setKeyColumns(List<String>) - Method in class tk.mybatis.mapper.entity.EntityTable
-
- setKeyProperties(String) - Method in class tk.mybatis.mapper.entity.EntityTable
-
- setKeyProperties(List<String>) - Method in class tk.mybatis.mapper.entity.EntityTable
-
- setKeyProperties(Set<EntityColumn>, MappedStatement) - Static method in class tk.mybatis.mapper.mapperhelper.EntityHelper
-
通过反射设置MappedStatement的keyProperties字段值
- setMapperHelper(MapperHelper) - Method in class tk.mybatis.mapper.session.Configuration
-
直接注入 mapperHelper
- setMapperProperties(Properties) - Method in class tk.mybatis.mapper.session.Configuration
-
使用属性方式配置
- setMappers(List<Class>) - Method in class tk.mybatis.mapper.entity.Config
-
- setName(String) - Method in class tk.mybatis.mapper.entity.EntityTable
-
- setNotEmpty(boolean) - Method in class tk.mybatis.mapper.entity.Config
-
- setOrder(String) - Method in class tk.mybatis.mapper.entity.Config
-
主键自增回写方法执行顺序,默认AFTER,可选值为(BEFORE|AFTER)
- setOrder(ORDER) - Method in class tk.mybatis.mapper.entity.EntityColumn
-
- setOrderBy(String) - Method in class tk.mybatis.mapper.entity.EntityColumn
-
- setOrderByClause(String) - Method in class tk.mybatis.mapper.entity.EntityTable
-
- setOrderByClause(String) - Method in class tk.mybatis.mapper.entity.Example
-
- setOrderPriority(int) - Method in class tk.mybatis.mapper.entity.EntityColumn
-
- setProperties(Properties) - Method in class tk.mybatis.mapper.entity.Config
-
配置属性
- setProperties(Properties) - Method in class tk.mybatis.mapper.mapperhelper.MapperHelper
-
配置属性
- setProperty(String) - Method in class tk.mybatis.mapper.entity.EntityColumn
-
- setResolveClass(Class<? extends EntityResolve>) - Method in class tk.mybatis.mapper.entity.Config
-
- setResultType(MappedStatement, Class<?>) - Method in class tk.mybatis.mapper.mapperhelper.MapperTemplate
-
设置返回值类型 - 为了让typeHandler在select时有效,改为设置resultMap
- setSafeDelete(boolean) - Method in class tk.mybatis.mapper.entity.Config
-
- setSafeUpdate(boolean) - Method in class tk.mybatis.mapper.entity.Config
-
- setSchema(String) - Method in class tk.mybatis.mapper.entity.Config
-
设置全局的schema,默认为空,如果设置了值,操作表时的sql会是schema.tablename
如果同时设置了catalog,优先使用catalog.tablename
- setSchema(String) - Method in class tk.mybatis.mapper.entity.EntityTable
-
- setSeqFormat(String) - Method in class tk.mybatis.mapper.entity.Config
-
序列的获取规则,使用{num}格式化参数,默认值为{0}.nextval,针对Oracle
可选参数一共3个,对应0,1,2,3分别为SequenceName,ColumnName, PropertyName,TableName
- setSqlSource(MappedStatement, MapperTemplate) - Method in class tk.mybatis.mapper.mapperhelper.MapperHelper
-
重新设置SqlSource
执行该方法前必须使用isMapperMethod判断,否则msIdCache会空
- setSqlSource(MappedStatement, SqlSource) - Method in class tk.mybatis.mapper.mapperhelper.MapperTemplate
-
重新设置SqlSource
- setSqlSource(MappedStatement) - Method in class tk.mybatis.mapper.mapperhelper.MapperTemplate
-
重新设置SqlSource
- setStyle(Style) - Method in class tk.mybatis.mapper.entity.Config
-
- setTable(EntityTable) - Method in class tk.mybatis.mapper.entity.EntityColumn
-
- setTable(Table) - Method in class tk.mybatis.mapper.entity.EntityTable
-
- setTableName(String) - Method in class tk.mybatis.mapper.entity.Example.Builder
-
- setTableName(String) - Method in class tk.mybatis.mapper.entity.Example
-
设置表名
- setTypeHandler(Class<? extends TypeHandler<?>>) - Method in class tk.mybatis.mapper.entity.EntityColumn
-
- setUpdatable(boolean) - Method in class tk.mybatis.mapper.entity.EntityColumn
-
- setUseJavaType(boolean) - Method in class tk.mybatis.mapper.entity.Config
-
- setUseJavaType(boolean) - Method in class tk.mybatis.mapper.entity.EntityColumn
-
- setUseSimpleType(boolean) - Method in class tk.mybatis.mapper.entity.Config
-
- setWrapKeyword(String) - Method in class tk.mybatis.mapper.entity.Config
-
- SimpleTypeUtil - Class in tk.mybatis.mapper.util
-
参考 org.apache.ibatis.type.SimpleTypeRegistry
- SimpleTypeUtil() - Constructor for class tk.mybatis.mapper.util.SimpleTypeUtil
-
- SqlHelper - Class in tk.mybatis.mapper.mapperhelper
-
拼常用SQL的工具类
- SqlHelper() - Constructor for class tk.mybatis.mapper.mapperhelper.SqlHelper
-
- SqlReservedWords - Class in tk.mybatis.mapper.util
-
This class contains a somewhat comprehensive list of SQL reserved words.
- Sqls - Class in tk.mybatis.mapper.util
-
- Sqls.Criteria - Class in tk.mybatis.mapper.util
-
- Sqls.Criterion - Class in tk.mybatis.mapper.util
-
- SqlsCriteria - Interface in tk.mybatis.mapper.entity
-
- StringUtil - Class in tk.mybatis.mapper.util
-
Created by liuzh_3nofxnp on 2015/8/26.
- StringUtil() - Constructor for class tk.mybatis.mapper.util.StringUtil
-
- Style - Enum in tk.mybatis.mapper.code
-
字段转换方式
- supportMethod(String) - Method in class tk.mybatis.mapper.mapperhelper.MapperTemplate
-
是否支持该通用方法
- supportMethod(String) - Method in class tk.mybatis.mapper.provider.EmptyProvider
-