public class ObjectUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
log
The log.
|
| Constructor and Description |
|---|
ObjectUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
deepCopy(Object source,
EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata)
Deep copy.
|
private static Object |
deepCopyUsingMetadata(Object source,
Map<Object,Object> copiedObjectMap,
EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata)
Deep copy using metadata.
|
static Object |
getFieldInstance(List chids,
Field f)
Gets the field instance.
|
private static Object |
searchInCacheThenCopy(Map<Object,Object> copiedObjectMap,
Object sourceObject,
EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata)
Search in cache then copy.
|
public static final Object deepCopy(Object source, EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata)
source - the sourcekunderaMetadata - the kundera metadataprivate static Object deepCopyUsingMetadata(Object source, Map<Object,Object> copiedObjectMap, EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata)
source - the sourcecopiedObjectMap - the copied object mapkunderaMetadata - the kundera metadataprivate static Object searchInCacheThenCopy(Map<Object,Object> copiedObjectMap, Object sourceObject, EntityManagerFactoryImpl.KunderaMetadata kunderaMetadata)
copiedObjectMap - the copied object mapsourceObject - the source objectkunderaMetadata - the kundera metadataCopyright © 2015. All Rights Reserved.