public class PropertyUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Accessor |
createAccessor(Class<?> objectClass,
String nestedPropertyName)
Compiles an accessor that can be used for fast access for the nested property of
the objects of a given class.
|
static Object |
getProperty(Object object,
String nestedPropertyName)
Returns object property using JavaBean-compatible introspection with one addition -
a property can be a dot-separated property name path.
|
static void |
setProperty(Object object,
String nestedPropertyName,
Object value)
Sets object property using JavaBean-compatible introspection with one addition - a
property can be a dot-separated property name path.
|
public static Accessor createAccessor(Class<?> objectClass, String nestedPropertyName)
public static Object getProperty(Object object, String nestedPropertyName) throws CayenneRuntimeException
CayenneRuntimeException
public static void setProperty(Object object, String nestedPropertyName, Object value) throws CayenneRuntimeException
CayenneRuntimeException
Copyright © 2001–2014 Apache Cayenne. All rights reserved.