public class ObjectGraphUtils extends Object
| Constructor and Description |
|---|
ObjectGraphUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
getEntityId(String nodeId) |
static String |
getNodeId(Object pk,
Class<?> objectClass) |
private static boolean |
isIdSet(Object id,
Field idField) |
static boolean |
onAutoGenerateId(Field idField,
Object idValue)
Validates and set id, in case not set and intended for auto generation.
|
public static String getNodeId(Object pk, Class<?> objectClass)
pk - objectClass - public static boolean onAutoGenerateId(Field idField, Object idValue)
idField - id fieldidValue - value of id attribute.Copyright © 2015. All Rights Reserved.