public class SerializableBean<B> extends Object implements Serializable
| 构造器和说明 |
|---|
SerializableBean() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
copy(B source)
浅拷贝 - jpa更新用 mybatis根据情况用
|
static <B> String |
of(ColumnSFunction<B,?> fn)
获取实体类的字段名称
|
static <B> String |
of(ColumnSFunction<B,?> fn,
Boolean toLine)
获取实体类的字段名称
|
<R> R |
to(Class<R> clazz)
vo dto entity 之间的转换
|
static <B,S> B |
to(Class<S> clazzs,
Class<B> clazz)
两个空bean转换
|
static <R,S extends SerializableBean> |
to(Collection<S> list,
Class<R> clazz)
list
|
static <B,S extends SerializableBean> |
to(Iterable<S> iterable,
Class<B> clazz)
Iterable
|
static <B,S> B |
to(S object,
Class<B> clazz)
bean转换
|
static <B,S> B |
to2(S object,
Class<B> clazz)
bean转换
|
public void copy(B source)
public static <B> String of(ColumnSFunction<B,?> fn)
public static <B> String of(ColumnSFunction<B,?> fn, Boolean toLine)
public <R> R to(Class<R> clazz)
public static <R,S extends SerializableBean> List<R> to(Collection<S> list, Class<R> clazz)
public static <B,S extends SerializableBean> List<B> to(Iterable<S> iterable, Class<B> clazz)
public static <B,S> B to2(S object,
Class<B> clazz)
public static <B,S> B to(S object,
Class<B> clazz)
Copyright © 2024 tan. All rights reserved.