|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjodd.bean.BeanTool
public class BeanTool
Various utilities that are applied on whole bean(s).
| Constructor Summary | |
|---|---|
BeanTool()
|
|
| Method Summary | |
|---|---|
static void |
apply(Object source,
Object destination)
Applies only public properties. |
static void |
apply(Object source,
Object destination,
boolean suppressSecurity)
Same as copy(Object, Object, boolean), except null values
are not copied. |
static void |
copy(Object source,
Object destination)
Copies only public properties. |
static void |
copy(Object source,
Object destination,
boolean suppressSecurity)
Copies properties of one bean to another. |
static void |
load(Object bean,
Object source)
Populates bean from given object by using a loader for given objects type. |
static void |
load(Object bean,
Object source,
Class type)
|
static String[] |
resolveProperties(Object bean,
boolean suppressSecurity)
Returns an array of bean properties. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BeanTool()
| Method Detail |
|---|
public static void copy(Object source,
Object destination,
boolean suppressSecurity)
source - source bean, one to read properties fromdestination - destination bean, to write properties tosuppressSecurity - true to suppress security
public static void apply(Object source,
Object destination,
boolean suppressSecurity)
copy(Object, Object, boolean), except null values
are not copied. Useful when destination object needs to be only partially updated.
public static void copy(Object source,
Object destination)
copy(Object, Object, boolean)
public static void apply(Object source,
Object destination)
apply(Object, Object, boolean)
public static String[] resolveProperties(Object bean,
boolean suppressSecurity)
public static void load(Object bean,
Object source)
public static void load(Object bean,
Object source,
Class type)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||