public class EntityBeanUtil extends Object
| Constructor and Description |
|---|
EntityBeanUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
cloneBean(Object object) |
static Object |
cloneBean(Object object,
String... ignoreProperties) |
static void |
copyProperties(Object source,
Object target) |
static void |
copyProperties(Object source,
Object target,
String... fields) |
static void |
copyPropertiesIgnores(Object source,
Object target) |
static void |
copyPropertiesIgnores(Object source,
Object target,
String... ignoreProperties) |
static Object |
getField(Object entity,
String fieldName) |
static void |
setField(Object entity,
String fieldName,
Object value) |
public static Object getField(Object entity, String fieldName) throws InvocationTargetException, IllegalAccessException
public static void setField(Object entity, String fieldName, Object value) throws InvocationTargetException, IllegalAccessException
public static void copyProperties(Object source, Object target) throws org.springframework.beans.BeansException
org.springframework.beans.BeansExceptionpublic static void copyProperties(Object source, Object target, String... fields) throws org.springframework.beans.BeansException
org.springframework.beans.BeansExceptionpublic static void copyPropertiesIgnores(Object source, Object target, String... ignoreProperties)
Copyright © 2022. All rights reserved.