Index
All Classes and Interfaces|All Packages
A
- assignParameter(Field) - Static method in class cn.yusiwen.commons.mapper.BaseMapper.TableInfo
-
获取该字段的参数赋值语句,如 user_name = #{userName}
B
- BaseEntity - Class in cn.yusiwen.commons.mapper
-
基础实体类,为所有实体类提供通用字段。
- BaseEntity() - Constructor for class cn.yusiwen.commons.mapper.BaseEntity
-
构造一个新的基础实体对象。
- BaseMapper<S> - Interface in cn.yusiwen.commons.mapper
-
一个基础的 MyBatis Mapper 接口,提供了通用的数据库操作方法。
- BaseMapper.BaseSqlProviderSupport - Class in cn.yusiwen.commons.mapper
-
基类
- BaseMapper.InsertSqlProvider - Class in cn.yusiwen.commons.mapper
-
插入provider
- BaseMapper.InsertWithoutPrimaryKeySqlProvider - Class in cn.yusiwen.commons.mapper
-
不包含主键的插入SQL提供者类
- BaseMapper.SelectByPrimaryKeyInSqlProvider - Class in cn.yusiwen.commons.mapper
-
根据id列表查询
- BaseMapper.SelectOneSqlProvider - Class in cn.yusiwen.commons.mapper
-
单条数据查询
- BaseMapper.TableInfo - Class in cn.yusiwen.commons.mapper
-
table info
- BaseSqlProviderSupport() - Constructor for class cn.yusiwen.commons.mapper.BaseMapper.BaseSqlProviderSupport
-
构造一个新的BaseSqlProviderSupport实例。
- bindParameter(Field) - Static method in class cn.yusiwen.commons.mapper.BaseMapper.TableInfo
-
绑定参数
C
- camel2Underscore(String) - Static method in class cn.yusiwen.commons.mapper.StrUtil
-
驼峰模式字符串转换为下划线字符串
- cn.yusiwen.commons.mapper - package cn.yusiwen.commons.mapper
- cn.yusiwen.commons.mapper.annotation - package cn.yusiwen.commons.mapper.annotation
- CollectionUtil - Class in cn.yusiwen.commons.mapper
-
集合工具类,提供对集合操作的常用方法。
- CollectionUtil.CompareResult<T> - Class in cn.yusiwen.commons.mapper
-
列表比较结果对象
- columnName(Field) - Static method in class cn.yusiwen.commons.mapper.BaseMapper.TableInfo
-
获取单个属性对应的数据库字段
- columns(Field[]) - Static method in class cn.yusiwen.commons.mapper.BaseMapper.TableInfo
-
获取所有pojo所有属性对应的数据库字段 (不包含pojo中含有@NoColumn主键的属性)
- compare(Collection<T>, Collection<T>) - Static method in class cn.yusiwen.commons.mapper.CollectionUtil
-
根据 元素自带的比较器 比较两个collection中哪些是新增的对象以及删除的对象和没有改变的对象
- compare(Collection<T>, Collection<T>, Comparator<T>) - Static method in class cn.yusiwen.commons.mapper.CollectionUtil
-
根据 指定比较器 比较两个collection中哪些是新增的对象以及删除的对象和没有改变的对象
- compare(List<T>, List<T>, Comparator<T>) - Static method in class cn.yusiwen.commons.mapper.CollectionUtil
-
根据 指定比较器 比较两个collection中哪些是新增的对象以及删除的对象和没有改变的对象
- CompareResult(Set<T>, Set<T>, Set<T>) - Constructor for class cn.yusiwen.commons.mapper.CollectionUtil.CompareResult
-
创建比较结果对象
- contains(Collection<T>, T) - Static method in class cn.yusiwen.commons.mapper.CollectionUtil
-
判断一个集合中是否存在指定元素
- convertCamel(String, char) - Static method in class cn.yusiwen.commons.mapper.StrUtil
-
转换驼峰字符串为指定分隔符的字符串
如:camelStr:"UserInfo" separator:'_'
return "user_info"
D
- defaultIfNull(T, T) - Static method in class cn.yusiwen.commons.mapper.ObjectUtil
-
如果obj为null,则返回默认值,不为null,则返回obj
- doWithFields(Class<?>, Consumer<Field>) - Static method in class cn.yusiwen.commons.mapper.ReflectUtil
-
对指定类的所有字段执行consumer操作
E
- entityType(Class<?>) - Static method in class cn.yusiwen.commons.mapper.BaseMapper.TableInfo
-
获取BaseMapper接口中的泛型类型
- excludeNotColumnField(Class<?>) - Static method in class cn.yusiwen.commons.mapper.BaseMapper.TableInfo
-
过滤含有@NotColumn注解或者是静态的field
F
- fields() - Element in annotation type cn.yusiwen.commons.mapper.annotation.JSONColumn
-
定义需要映射的 JSON 字段名称数组。
- fields() - Element in annotation type cn.yusiwen.commons.mapper.annotation.NotColumn
-
作用于类型指定不需要映射的字段名数组
G
- getClassExcludeColumns(Class<?>) - Static method in class cn.yusiwen.commons.mapper.BaseMapper.TableInfo
-
获取实体类上标注的不需要映射的字段名
- getField(Class<?>, String) - Static method in class cn.yusiwen.commons.mapper.ReflectUtil
-
获取指定类中指定名称的字段,包括父类中的字段。
- getField(Class<?>, String, Class<?>) - Static method in class cn.yusiwen.commons.mapper.ReflectUtil
-
获取指定类的指定field,包括父类
- getFields(Class<?>) - Static method in class cn.yusiwen.commons.mapper.ReflectUtil
-
获取指定类的所有字段,包含父类继承的字段。
- getFields(Class<?>, Predicate<Field>) - Static method in class cn.yusiwen.commons.mapper.ReflectUtil
-
获取指定类的所有的field,包括父类
- getFieldValue(Object, String) - Static method in class cn.yusiwen.commons.mapper.ReflectUtil
-
获取对象中指定field值
- getFieldValue(Field, Object) - Static method in class cn.yusiwen.commons.mapper.ReflectUtil
-
获取字段值
- getPrimaryKeyWhere() - Method in class cn.yusiwen.commons.mapper.BaseMapper.TableInfo
-
获取主键的where条件,如 id = #{id}
- getValueByFieldPath(Object, String) - Static method in class cn.yusiwen.commons.mapper.ReflectUtil
-
获取指定对象中指定字段路径的值(类似js访问对象属性)
如:Product p = new Product(new User())
可使用ReflectionUtils.getValueByFieldPath(p, "user.name")获取到用户的name属性
I
- insert(S) - Method in interface cn.yusiwen.commons.mapper.BaseMapper
-
插入一个新的实体对象到数据库中。
- InsertSqlProvider() - Constructor for class cn.yusiwen.commons.mapper.BaseMapper.InsertSqlProvider
-
构造一个新的插入SQL提供者实例。
- InsertWithoutPrimaryKeySqlProvider() - Constructor for class cn.yusiwen.commons.mapper.BaseMapper.InsertWithoutPrimaryKeySqlProvider
-
创建一个新的InsertWithoutPrimaryKeySqlProvider实例。
- invokeMethod(Method, Object) - Static method in class cn.yusiwen.commons.mapper.ReflectUtil
-
调用对象的无参数方法。
- invokeMethod(Method, Object, Object...) - Static method in class cn.yusiwen.commons.mapper.ReflectUtil
-
调用指定对象的方法
- isArray(Object) - Static method in class cn.yusiwen.commons.mapper.ObjectUtil
-
判断一个对象是否为数组
- isBoolean(Object) - Static method in class cn.yusiwen.commons.mapper.ObjectUtil
-
判断对象是否为布尔类型
- isCharSequence(Object) - Static method in class cn.yusiwen.commons.mapper.ObjectUtil
-
判断对象是否为字符序列类型
- isCollection(Object) - Static method in class cn.yusiwen.commons.mapper.ObjectUtil
-
判断对象是否为集合类型
- isDate(Object) - Static method in class cn.yusiwen.commons.mapper.ObjectUtil
-
判断对象是否为日期类型
- isEmpty(Collection<?>) - Static method in class cn.yusiwen.commons.mapper.CollectionUtil
-
判断集合是否为空
- isEnum(Object) - Static method in class cn.yusiwen.commons.mapper.ObjectUtil
-
判断对象是否为枚举类型
- isEqualsMethod(Method) - Static method in class cn.yusiwen.commons.mapper.ReflectUtil
-
判断给定的方法是否为Object类的equals方法。
- isHashCodeMethod(Method) - Static method in class cn.yusiwen.commons.mapper.ReflectUtil
-
判断给定的方法是否为Object类的hashCode方法。
- isMap(Object) - Static method in class cn.yusiwen.commons.mapper.ObjectUtil
-
判断对象是否为Map类型
- isNotEmpty(Collection<?>) - Static method in class cn.yusiwen.commons.mapper.CollectionUtil
-
判断集合不为空
- isNumber(Object) - Static method in class cn.yusiwen.commons.mapper.ObjectUtil
-
判断对象是否为数字类型
- isPrimitive(Object) - Static method in class cn.yusiwen.commons.mapper.ObjectUtil
-
判断对象是否为八大基本类型包装类除外即(boolean, byte, char, short, int, long, float, and double)
- isPrimitiveArray(Object) - Static method in class cn.yusiwen.commons.mapper.ObjectUtil
-
判断一个对象是否为基本类型数组即(int[], long[], boolean[], double[]....)
- isToStringMethod(Method) - Static method in class cn.yusiwen.commons.mapper.ReflectUtil
-
判断给定的方法是否为Object类的toString方法。
- isWrapperOrPrimitive(Object) - Static method in class cn.yusiwen.commons.mapper.ObjectUtil
-
判断对象是否为包装类或者非包装类的基本类型
J
- joinSeparator2String(Collection<?>, String) - Static method in class cn.yusiwen.commons.mapper.CollectionUtil
-
使用分隔符将集合元素拼接为字符串
- JSONColumn - Annotation Type in cn.yusiwen.commons.mapper.annotation
-
此注解用于标记类或字段,以指定它们在 JSON 映射中的特殊处理方式。
M
- makeAccessible(Field) - Static method in class cn.yusiwen.commons.mapper.ReflectUtil
-
设置字段为可访问,主要用于访问私有字段。
- makeAccessible(Method) - Static method in class cn.yusiwen.commons.mapper.ReflectUtil
-
设置方法可见性
N
- newArrayList(int, T...) - Static method in class cn.yusiwen.commons.mapper.CollectionUtil
-
创建arraylist
- newArrayList(T...) - Static method in class cn.yusiwen.commons.mapper.CollectionUtil
-
创建arraylist
- NotColumn - Annotation Type in cn.yusiwen.commons.mapper.annotation
-
对象属性不映射到数据库注解(可作用于字段上,或类型指定哪些字段不映射)
O
- ObjectUtil - Class in cn.yusiwen.commons.mapper
-
对象工具类,提供对象类型判断、默认值处理等常用工具方法。
- of(Class<?>) - Static method in class cn.yusiwen.commons.mapper.BaseMapper.TableInfo
-
获取TableInfo的简单工厂
P
- parseLong(String) - Static method in class cn.yusiwen.commons.mapper.StrUtil
-
尝试将字符串解析为Long类型的数值
- PrimaryKey - Annotation Type in cn.yusiwen.commons.mapper.annotation
-
此注解用于标记字段是数据库中的主键。
- primaryKeyColumn(Field[]) - Static method in class cn.yusiwen.commons.mapper.BaseMapper.TableInfo
-
如果fields中含有@Primary的字段,则返回该字段名为主键,否则默认'id'为主键名
Q
- queryById(Long) - Method in interface cn.yusiwen.commons.mapper.BaseMapper
-
根据主键ID查询单条记录。
R
- ReflectUtil - Class in cn.yusiwen.commons.mapper
-
反射工具类,提供对类、字段和方法的反射操作功能。
S
- SelectByPrimaryKeyInSqlProvider() - Constructor for class cn.yusiwen.commons.mapper.BaseMapper.SelectByPrimaryKeyInSqlProvider
-
创建一个新的SelectByPrimaryKeyInSqlProvider实例。
- selectColumnName(Field) - Static method in class cn.yusiwen.commons.mapper.BaseMapper.TableInfo
-
获取单个属性对应的数据库字段(带有下划线字段将其转换为"字段 AS pojo属性名"形式)
- selectColumns(Field[]) - Static method in class cn.yusiwen.commons.mapper.BaseMapper.TableInfo
-
获取查询对应的字段 (不包含pojo中含有@NoColumn主键的属性)
- SelectOneSqlProvider() - Constructor for class cn.yusiwen.commons.mapper.BaseMapper.SelectOneSqlProvider
-
创建一个新的SelectOneSqlProvider实例。
- setFieldValue(Field, Object, Object) - Static method in class cn.yusiwen.commons.mapper.ReflectUtil
-
设置字段值
- sql(Map<String, Object>, ProviderContext) - Method in class cn.yusiwen.commons.mapper.BaseMapper.SelectByPrimaryKeyInSqlProvider
-
生成根据主键ID列表进行批量查询的SQL语句
- sql(ProviderContext) - Method in class cn.yusiwen.commons.mapper.BaseMapper.InsertSqlProvider
-
sql
- sql(ProviderContext) - Method in class cn.yusiwen.commons.mapper.BaseMapper.InsertWithoutPrimaryKeySqlProvider
-
生成不包含主键的INSERT SQL语句
- sql(ProviderContext) - Method in class cn.yusiwen.commons.mapper.BaseMapper.SelectOneSqlProvider
-
sql
- StrUtil - Class in cn.yusiwen.commons.mapper
-
字符串工具类,提供常用的字符串处理方法。
- substr(String, int) - Static method in class cn.yusiwen.commons.mapper.StrUtil
-
截取字符串的子串,长度不超过指定的最大值。
T
- Table - Annotation Type in cn.yusiwen.commons.mapper.annotation
-
此注解用于表示数据库的表名。
- tableInfo(ProviderContext) - Method in class cn.yusiwen.commons.mapper.BaseMapper.BaseSqlProviderSupport
-
获取表信息结构
- tableName(Class<?>) - Static method in class cn.yusiwen.commons.mapper.BaseMapper.TableInfo
-
获取表名
V
A B C D E F G I J M N O P Q R S T VAll Classes and Interfaces|All Packages