public class DbUtil extends Object
| 构造器和说明 |
|---|
DbUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> cn.hutool.db.Entity |
getIdEntity(T obj) |
static <T> String |
getTableName(Class<T> clazz) |
static <T> List<cn.hutool.db.Entity> |
toEntity(Collection<T> objs)
将实体对象List转换为可hutool入库对象List
属性值为null忽略。
|
static <T> List<cn.hutool.db.Entity> |
toEntity(Collection<T> objs,
boolean ignoreNullValue)
将实体对象List转换为可hutool入库对象List
|
static <T> cn.hutool.db.Entity |
toEntity(T obj)
将实体对象转换为可hutool入库对象
属性值为null忽略。
|
static <T> cn.hutool.db.Entity |
toEntity(T obj,
boolean ignoreNullValue)
将实体对象转换为可hutool入库对象
|
public static <T> cn.hutool.db.Entity toEntity(T obj,
boolean ignoreNullValue)
T - 类obj - 需要转换的类对象ignoreNullValue - 是否忽略空值属性,true 忽略public static <T> cn.hutool.db.Entity toEntity(T obj)
T - 类obj - 需要转换的类对象public static <T> List<cn.hutool.db.Entity> toEntity(Collection<T> objs)
T - 类objs - 需要转换的类对象Listpublic static <T> List<cn.hutool.db.Entity> toEntity(Collection<T> objs, boolean ignoreNullValue)
T - 类objs - 需要转换的类对象ListignoreNullValue - 是否忽略空值属性,true 忽略public static <T> cn.hutool.db.Entity getIdEntity(T obj)
Copyright © 2022. All rights reserved.