|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.reflect.PropertyUtils
public class PropertyUtils
Utility methods to quickly access object properties. This class supports simple and nested properties and also conversion of property values to match property type. No converter customization is provided yet, so only basic converters for Strings, Numbers and primitives are available.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |