类 BeanUtils
- java.lang.Object
-
- net.sinodawn.framework.utils.BeanUtils
-
public abstract class BeanUtils extends Object
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classBeanUtils.CopyConfig
-
构造器概要
构造器 构造器 说明 BeanUtils()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static voidcopyProperties(Object source, Object target, String... ignoreProperties)static voidcopyProperties(Object source, Object target, BeanUtils.CopyConfig copyConfig, String... ignoreProperties)static <V> voidcopyProperties(Map<String,V> source, Object target, String... ignoreProperties)static <V> voidcopyProperties(Map<String,V> source, Object target, BeanUtils.CopyConfig copyConfig, String... ignoreProperties)static voidcopyProperties(javax.servlet.ServletRequest source, Object target, String... ignoreProperties)static <T> Map<String,Object>deeplyToMap(T bean)static <T> voidemptyProperties(List<T> beans, String... properties)static <T> TgetPropertyListenerProxy(Class<T> clazz)static <T> TgetPropertyListenerProxy(T bean)static <T,V>
VgetPropertyValue(T item, String propertyName)static <T> booleanisEmpty(T item)static <T> booleanmatch(T item, Map<String,Object> map)static <T,V>
voidsetPropertyValue(T item, String propertyName, V value)static <T> Map<String,Object>toMap(T bean)
-
-
-
方法详细资料
-
getPropertyListenerProxy
public static <T> T getPropertyListenerProxy(T bean)
-
getPropertyListenerProxy
public static <T> T getPropertyListenerProxy(Class<T> clazz)
-
copyProperties
public static void copyProperties(Object source, Object target, String... ignoreProperties)
-
copyProperties
public static void copyProperties(Object source, Object target, BeanUtils.CopyConfig copyConfig, String... ignoreProperties)
-
copyProperties
public static void copyProperties(javax.servlet.ServletRequest source, Object target, String... ignoreProperties)
-
copyProperties
public static <V> void copyProperties(Map<String,V> source, Object target, String... ignoreProperties)
-
copyProperties
public static <V> void copyProperties(Map<String,V> source, Object target, BeanUtils.CopyConfig copyConfig, String... ignoreProperties)
-
isEmpty
public static <T> boolean isEmpty(T item)
-
getPropertyValue
public static <T,V> V getPropertyValue(T item, String propertyName)
-
setPropertyValue
public static <T,V> void setPropertyValue(T item, String propertyName, V value)
-
-