Java Code Examples for org.springframework.cglib.beans.BeanMap#putAll()
The following examples show how to use
org.springframework.cglib.beans.BeanMap#putAll() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DynamicDTO.java From jea with Apache License 2.0 | 5 votes |
public Object getCloneBean() { try { Object tmpObject = generator.create(); BeanMap tmpMap = BeanMap.create(tmpObject); tmpMap.putAll(valueMap); return tmpObject; } catch (Exception e) { return null; } }
Example 2
Source File: BeanMapUtils.java From Lottor with MIT License | 4 votes |
public static <T> T objectMapToBean(Map<Object,Object> map, T bean) { BeanMap beanMap = BeanMap.create(bean); beanMap.putAll(map); return bean; }
Example 3
Source File: BeanUtil.java From web-flash with MIT License | 2 votes |
/** * 将map装换为javabean对象 * @param map * @param bean * @return */ public static <T> T mapToBean(Map<String, Object> map,T bean) { BeanMap beanMap = BeanMap.create(bean); beanMap.putAll(map); return bean; }
Example 4
Source File: BeanUtil.java From flash-waimai with MIT License | 2 votes |
/** * 将map装换为javabean对象 * @param map * @param bean * @return */ public static <T> T mapToBean(Map<String, Object> map,T bean) { BeanMap beanMap = BeanMap.create(bean); beanMap.putAll(map); return bean; }
Example 5
Source File: BeanMapUtils.java From Lottor with MIT License | 2 votes |
/** * 将map装换为javabean对象 * * @param map * @param bean * @return */ public static <T> T mapToBean(Map<String,Object> map, T bean) { BeanMap beanMap = BeanMap.create(bean); beanMap.putAll(map); return bean; }
Example 6
Source File: BeanMapUtils.java From Lottor with MIT License | 2 votes |
/** * 将map装换为javabean对象 * * @param map key value 为string 的map * @param bean * @return */ public static <T> T stringMapToBean(Map<String,String> map, T bean) { BeanMap beanMap = BeanMap.create(bean); beanMap.putAll(map); return bean; }
Example 7
Source File: Utils.java From faster-framework-project with Apache License 2.0 | 2 votes |
/** * 将map装换为javabean对象 * * @param map 原始map * @param bean 实例化空bean * @param <T> 泛型 * @return 填充后的bean */ public static <T> T mapToBean(Map<String, Object> map, T bean) { BeanMap beanMap = BeanMap.create(bean); beanMap.putAll(map); return bean; }