Package com.mchange.v2.beans
Class BeansUtils
- java.lang.Object
-
- com.mchange.v2.beans.BeansUtils
-
public final class BeansUtils extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidappendPropNamesAndValues(java.lang.StringBuffer appendIntoMe, java.lang.Object bean, java.util.Collection ignoreProps)static voiddebugShowPropertyChange(java.beans.PropertyChangeEvent evt)static booleanequalsByAccessibleProperties(java.lang.Object bean0, java.lang.Object bean1)static booleanequalsByAccessibleProperties(java.lang.Object bean0, java.lang.Object bean1, java.util.Collection ignoreProps)static booleanequalsByAccessiblePropertiesVerbose(java.lang.Object bean0, java.lang.Object bean1, java.util.Collection ignoreProps)static voidextractAccessiblePropertiesToMap(java.util.Map fillMe, java.lang.Object bean)static voidextractAccessiblePropertiesToMap(java.util.Map fillMe, java.lang.Object bean, java.util.Collection ignoreProps)static java.beans.PropertyEditorfindPropertyEditor(java.beans.PropertyDescriptor pd)static voidoverwriteAccessibleProperties(java.lang.Object sourceBean, java.lang.Object destBean)static voidoverwriteAccessibleProperties(java.lang.Object sourceBean, java.lang.Object destBean, java.util.Collection ignoreProps)static voidoverwriteAccessiblePropertiesFromMap(java.util.Map sourceMap, java.lang.Object destBean, boolean skip_nulls)static voidoverwriteAccessiblePropertiesFromMap(java.util.Map sourceMap, java.lang.Object destBean, boolean skip_nulls, java.util.Collection ignoreProps)static voidoverwriteAccessiblePropertiesFromMap(java.util.Map sourceMap, java.lang.Object destBean, boolean skip_nulls, java.util.Collection ignoreProps, boolean coerce_strings, MLevel cantWriteLevel, MLevel cantCoerceLevel, boolean die_on_one_prop_failure)static voidoverwriteSpecificAccessibleProperties(java.lang.Object sourceBean, java.lang.Object destBean, java.util.Collection props)
-
-
-
Method Detail
-
findPropertyEditor
public static java.beans.PropertyEditor findPropertyEditor(java.beans.PropertyDescriptor pd)
-
equalsByAccessibleProperties
public static boolean equalsByAccessibleProperties(java.lang.Object bean0, java.lang.Object bean1) throws java.beans.IntrospectionException- Throws:
java.beans.IntrospectionException
-
equalsByAccessibleProperties
public static boolean equalsByAccessibleProperties(java.lang.Object bean0, java.lang.Object bean1, java.util.Collection ignoreProps) throws java.beans.IntrospectionException- Throws:
java.beans.IntrospectionException
-
equalsByAccessiblePropertiesVerbose
public static boolean equalsByAccessiblePropertiesVerbose(java.lang.Object bean0, java.lang.Object bean1, java.util.Collection ignoreProps) throws java.beans.IntrospectionException- Throws:
java.beans.IntrospectionException
-
overwriteAccessibleProperties
public static void overwriteAccessibleProperties(java.lang.Object sourceBean, java.lang.Object destBean) throws java.beans.IntrospectionException- Throws:
java.beans.IntrospectionException
-
overwriteAccessibleProperties
public static void overwriteAccessibleProperties(java.lang.Object sourceBean, java.lang.Object destBean, java.util.Collection ignoreProps) throws java.beans.IntrospectionException- Throws:
java.beans.IntrospectionException
-
overwriteAccessiblePropertiesFromMap
public static void overwriteAccessiblePropertiesFromMap(java.util.Map sourceMap, java.lang.Object destBean, boolean skip_nulls) throws java.beans.IntrospectionException- Throws:
java.beans.IntrospectionException
-
overwriteAccessiblePropertiesFromMap
public static void overwriteAccessiblePropertiesFromMap(java.util.Map sourceMap, java.lang.Object destBean, boolean skip_nulls, java.util.Collection ignoreProps) throws java.beans.IntrospectionException- Throws:
java.beans.IntrospectionException
-
overwriteAccessiblePropertiesFromMap
public static void overwriteAccessiblePropertiesFromMap(java.util.Map sourceMap, java.lang.Object destBean, boolean skip_nulls, java.util.Collection ignoreProps, boolean coerce_strings, MLevel cantWriteLevel, MLevel cantCoerceLevel, boolean die_on_one_prop_failure) throws java.beans.IntrospectionException- Throws:
java.beans.IntrospectionException
-
appendPropNamesAndValues
public static void appendPropNamesAndValues(java.lang.StringBuffer appendIntoMe, java.lang.Object bean, java.util.Collection ignoreProps) throws java.beans.IntrospectionException- Throws:
java.beans.IntrospectionException
-
extractAccessiblePropertiesToMap
public static void extractAccessiblePropertiesToMap(java.util.Map fillMe, java.lang.Object bean) throws java.beans.IntrospectionException- Throws:
java.beans.IntrospectionException
-
extractAccessiblePropertiesToMap
public static void extractAccessiblePropertiesToMap(java.util.Map fillMe, java.lang.Object bean, java.util.Collection ignoreProps) throws java.beans.IntrospectionException- Throws:
java.beans.IntrospectionException
-
overwriteSpecificAccessibleProperties
public static void overwriteSpecificAccessibleProperties(java.lang.Object sourceBean, java.lang.Object destBean, java.util.Collection props) throws java.beans.IntrospectionException- Throws:
java.beans.IntrospectionException
-
debugShowPropertyChange
public static void debugShowPropertyChange(java.beans.PropertyChangeEvent evt)
-
-