Property path (or nested property) is a dot-separated path used to traverse object relationships until the final object is found. If a null object found while traversing path, null is returned. If a list is encountered in the middle of the path, CayenneRuntimeException is thrown. Unlike {@link #readPropertyDirectly(String)}, this method will resolve an object if it is HOLLOW.
Examples:
String name = (String)artist.readNestedProperty("name");
Gallery g = (Gallery)paintingInfo.readNestedProperty("toPainting.toGallery");
String name = (String)painting.readNestedProperty("toArtist.artistName");
List exhibits = (List)painting.readNestedProperty("toGallery.exhibitArray");
String name = (String)artist.readNestedProperty("paintingArray.paintingName");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|