Package com.liferay.portal.kernel.bean
Class BeanPropertiesUtil
Object
com.liferay.portal.kernel.bean.BeanPropertiesUtil
- Author:
- Brian Wing Shun Chan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcopyProperties(Object source, Object target) static <T> TdeepCopyProperties(Object source) static BeanPropertiesstatic booleangetBoolean(Object bean, String param) static booleangetBoolean(Object bean, String param, boolean defaultValue) static booleangetBooleanSilent(Object bean, String param) static booleangetBooleanSilent(Object bean, String param, boolean defaultValue) static bytestatic bytestatic bytegetByteSilent(Object bean, String param) static bytegetByteSilent(Object bean, String param, byte defaultValue) static doublestatic doublestatic doublegetDoubleSilent(Object bean, String param) static doublegetDoubleSilent(Object bean, String param, double defaultValue) static floatstatic floatstatic floatgetFloatSilent(Object bean, String param) static floatgetFloatSilent(Object bean, String param, float defaultValue) static intgetInteger(Object bean, String param) static intgetInteger(Object bean, String param, int defaultValue) static intgetIntegerSilent(Object bean, String param) static intgetIntegerSilent(Object bean, String param, int defaultValue) static longstatic longstatic longgetLongSilent(Object bean, String param) static longgetLongSilent(Object bean, String param, long defaultValue) static Objectstatic Objectstatic ObjectgetObjectSilent(Object bean, String param) static ObjectgetObjectSilent(Object bean, String param, Object defaultValue) static Class<?>getObjectType(Object bean, String param) static Class<?>getObjectType(Object bean, String param, Class<?> defaultValue) static Class<?>getObjectTypeSilent(Object bean, String param) static Class<?>getObjectTypeSilent(Object bean, String param, Class<?> defaultValue) static shortstatic shortstatic shortgetShortSilent(Object bean, String param) static shortgetShortSilent(Object bean, String param, short defaultValue) static Stringstatic Stringstatic StringgetStringSilent(Object bean, String param) static StringgetStringSilent(Object bean, String param, String defaultValue) voidsetBeanProperties(BeanProperties beanProperties) static voidsetProperties(Object bean, javax.servlet.http.HttpServletRequest httpServletRequest) static voidsetProperties(Object bean, javax.servlet.http.HttpServletRequest httpServletRequest, String[] ignoreProperties) static voidsetProperty(Object bean, String param, Object value) static voidsetPropertySilent(Object bean, String param, Object value)
-
Constructor Details
-
BeanPropertiesUtil
public BeanPropertiesUtil()
-
-
Method Details
-
copyProperties
-
deepCopyProperties
- Throws:
Exception
-
getBeanProperties
-
getBoolean
-
getBoolean
-
getBooleanSilent
-
getBooleanSilent
-
getByte
-
getByte
-
getByteSilent
-
getByteSilent
-
getDouble
-
getDouble
-
getDoubleSilent
-
getDoubleSilent
-
getFloat
-
getFloat
-
getFloatSilent
-
getFloatSilent
-
getInteger
-
getInteger
-
getIntegerSilent
-
getIntegerSilent
-
getLong
-
getLong
-
getLongSilent
-
getLongSilent
-
getObject
-
getObject
-
getObjectSilent
-
getObjectSilent
-
getObjectType
-
getObjectType
-
getObjectTypeSilent
-
getObjectTypeSilent
-
getShort
-
getShort
-
getShortSilent
-
getShortSilent
-
getString
-
getString
-
getStringSilent
-
getStringSilent
-
setProperties
public static void setProperties(Object bean, javax.servlet.http.HttpServletRequest httpServletRequest) -
setProperties
-
setProperty
-
setPropertySilent
-
setBeanProperties
-