A B C D E F G I M O P R S U
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- ActiveRecord<T,I extends Serializable> - Interface in io.mybatis.activerecord
-
建议将继承该抽象类的实现类的作用范围控制在 Service 层,不能超出范围,其它层使用时转换为 VO 或 DTO 后使用
- addMapper(Class<?>, Object) - Method in class io.mybatis.activerecord.spring.MapperProvider
-
添加 Mapper 接口和实例(可选)
- afterPropertiesSet() - Method in class io.mybatis.activerecord.spring.boot.autoconfigure.MapperProviderAutoConfiguration.AutoRegisterConfiguration
- applicationContext - Static variable in class io.mybatis.activerecord.spring.MapperProvider
-
Spring 上下文
- AutoRegisterConfiguration(MapperProvider) - Constructor for class io.mybatis.activerecord.spring.boot.autoconfigure.MapperProviderAutoConfiguration.AutoRegisterConfiguration
B
- baseMapper() - Method in interface io.mybatis.activerecord.MapperRecord
-
通用 Mapper
- baseMapper(Class<T>) - Method in class io.mybatis.activerecord.spring.MapperProvider
-
获取实体类对应的 Mapper 接口
C
- count() - Method in interface io.mybatis.activerecord.EntityRecord
-
以当前类作为条件查询总数
- count(Example<T>) - Method in interface io.mybatis.activerecord.ExampleRecord
-
根据 example 查询总数
D
- delete() - Method in interface io.mybatis.activerecord.EntityRecord
-
根据当前类的值作为条件进行删除(注意:当所有字段都没有值时可能会清库)
- delete(Example<T>) - Method in interface io.mybatis.activerecord.ExampleRecord
-
根据 example 条件批量删除
- deleteByFieldList(Fn<T, F>, List<F>) - Method in interface io.mybatis.activerecord.EntityRecord
-
根据指定字段集合删除
- deleteById() - Method in interface io.mybatis.activerecord.EntityRecord
-
根据主键进行删除
- deleteById(I) - Method in interface io.mybatis.activerecord.EntityRecord
-
根据指定的主键进行删除
E
- EntityRecord<T,I extends Serializable> - Interface in io.mybatis.activerecord
-
建议将继承该抽象类的实现类的作用范围控制在 Service 层,不能超出范围,其它层使用时转换为 VO 或 DTO 后使用
- example() - Method in interface io.mybatis.activerecord.ExampleRecord
-
获取 Example 对象
- ExampleRecord<T,I extends Serializable> - Interface in io.mybatis.activerecord
-
建议将继承该抽象类的实现类的作用范围控制在 Service 层,不能超出范围,其它层使用时转换为 VO 或 DTO 后使用
F
- findAll() - Method in interface io.mybatis.activerecord.EntityRecord
-
查询全部
- findByFieldList(Fn<T, F>, List<F>) - Method in interface io.mybatis.activerecord.EntityRecord
-
根据指定字段集合查询
- findById(I) - Method in interface io.mybatis.activerecord.EntityRecord
-
根据指定的主键查询
- findList() - Method in interface io.mybatis.activerecord.EntityRecord
-
以当前类作为条件查询
- findList(Example<T>) - Method in interface io.mybatis.activerecord.ExampleRecord
-
根据 example 条件查询
- findOne() - Method in interface io.mybatis.activerecord.EntityRecord
-
以当前类作为条件查询一个,当结果多于1个时出错
- findOne(Example<T>) - Method in interface io.mybatis.activerecord.ExampleRecord
-
根据 example 条件查询一个,当结果多于1个时出错
G
- getDefaultInstance() - Static method in class io.mybatis.activerecord.spring.MapperProvider
-
获取默认实例
- getInstance(String) - Static method in class io.mybatis.activerecord.spring.MapperProvider
-
获取指定的实例
I
- initMapper() - Method in class io.mybatis.activerecord.spring.MapperProvider
- io.mybatis.activerecord - package io.mybatis.activerecord
- io.mybatis.activerecord.spring - package io.mybatis.activerecord.spring
- io.mybatis.activerecord.spring.boot.autoconfigure - package io.mybatis.activerecord.spring.boot.autoconfigure
- isEnabled() - Method in class io.mybatis.activerecord.spring.boot.autoconfigure.MapperProviderProperties
M
- MapperProvider<T,I extends Serializable,M extends BaseMapper<T,I>> - Class in io.mybatis.activerecord.spring
-
根据实体类提供对应的 Mapper 接口实例
- MapperProvider(SqlSessionTemplate) - Constructor for class io.mybatis.activerecord.spring.MapperProvider
-
构造方法,必须使用线程安全的
SqlSessionTemplate - MapperProviderAutoConfiguration - Class in io.mybatis.activerecord.spring.boot.autoconfigure
-
自动配置
MapperProvider - MapperProviderAutoConfiguration() - Constructor for class io.mybatis.activerecord.spring.boot.autoconfigure.MapperProviderAutoConfiguration
- MapperProviderAutoConfiguration.AutoRegisterConfiguration - Class in io.mybatis.activerecord.spring.boot.autoconfigure
-
自动注册为默认的 Mapper 提供者
- MapperProviderProperties - Class in io.mybatis.activerecord.spring.boot.autoconfigure
-
Mapper 提供者配置
- MapperProviderProperties() - Constructor for class io.mybatis.activerecord.spring.boot.autoconfigure.MapperProviderProperties
- MapperRecord<T,I extends Serializable,M extends BaseMapper<T,I>> - Interface in io.mybatis.activerecord
-
提供通用 Mapper
- modelMapper - Variable in class io.mybatis.activerecord.spring.MapperProvider
-
缓存默认注入的实例
O
- onApplicationEvent(ContextRefreshedEvent) - Method in class io.mybatis.activerecord.spring.MapperProvider
P
- pkHasValue() - Method in interface io.mybatis.activerecord.EntityRecord
-
主键是否有值
- pkValue() - Method in interface io.mybatis.activerecord.EntityRecord
-
返回主键值,建议子类替换为效率更高的判断方式(例如主键为 id 的情况下,直接 return id)
- PREFIX - Static variable in class io.mybatis.activerecord.spring.boot.autoconfigure.MapperProviderProperties
R
- registerAsDefault() - Method in class io.mybatis.activerecord.spring.MapperProvider
-
将当前实例设置为默认实例
S
- save() - Method in interface io.mybatis.activerecord.EntityRecord
-
保存(所有字段)
- saveOrUpdate() - Method in interface io.mybatis.activerecord.EntityRecord
-
保存或更新(全部字段),当主键不存在时保存,存在时更新
- saveOrUpdateSelective() - Method in interface io.mybatis.activerecord.EntityRecord
-
保存或更新(非空字段),当主键不存在时保存,存在时更新
- saveSelective() - Method in interface io.mybatis.activerecord.EntityRecord
-
保存(非空字段,空的字段会使用数据库设置的默认值,但是不会字段反写)
- setApplicationContext(ApplicationContext) - Method in class io.mybatis.activerecord.spring.MapperProvider
- setEnabled(boolean) - Method in class io.mybatis.activerecord.spring.boot.autoconfigure.MapperProviderProperties
- springMapperRegistry(SqlSessionTemplate) - Method in class io.mybatis.activerecord.spring.boot.autoconfigure.MapperProviderAutoConfiguration
-
当前没有自定义的 Mapper 提供者时,提供一个默认的
- sqlSessionTemplate - Variable in class io.mybatis.activerecord.spring.MapperProvider
-
必须使用线程安全的
SqlSessionTemplate
U
- update() - Method in interface io.mybatis.activerecord.EntityRecord
-
根据主键更新(所有字段)
- update(Example<T>) - Method in interface io.mybatis.activerecord.ExampleRecord
-
根据 example 查询条件批量更新(所有字段)
- updateSelective() - Method in interface io.mybatis.activerecord.EntityRecord
-
根据主键更新(非空字段)
- updateSelective(Example<T>) - Method in interface io.mybatis.activerecord.ExampleRecord
-
根据 example 查询条件批量更新(非空字段)
- updateSelective(Fn<T, Object>...) - Method in interface io.mybatis.activerecord.EntityRecord
-
根据主键更新(非空字段),指定的强制更新字段不区分是否为空
All Classes All Packages