public static class ERXCopyable.DefaultImplementation extends Object
EOEnterpriseObject
s.
er.extensions.eof.ERXCopyable}.
EOGlobalID globalID = editingContext().globalIDForObject(this);
copiedObjects.setObjectForKey(copy, globalID);
Constructor and Description |
---|
DefaultImplementation() |
Modifier and Type | Method and Description |
---|---|
static <T extends ERXCopyable<T>> |
copy(NSMutableDictionary<com.webobjects.eocontrol.EOGlobalID,ERXCopyable<?>> copiedObjects,
T source)
Returns a copy of this object.
|
static <T extends ERXCopyable<T>> |
duplicate(NSMutableDictionary<com.webobjects.eocontrol.EOGlobalID,ERXCopyable<?>> copiedObjects,
T source)
Returns a deep copy of this object.
|
public static <T extends ERXCopyable<T>> T copy(NSMutableDictionary<com.webobjects.eocontrol.EOGlobalID,ERXCopyable<?>> copiedObjects, T source)
Reference
, Deep
,
etc. is up to the object being copied. If a copy already exists in
the copiedObjects
dictionary, then that existing copy is
returned instead of making a new copy. This allows complex graphs of
objects, including those with cycles, to be copied without producing
duplicate objects.T
- the Type of the source
copiedObjects
- the copied objects keyed on the EOGlobalID of the object
the copy was made from.source
- the ERXCopyable
to copypublic static <T extends ERXCopyable<T>> T duplicate(NSMutableDictionary<com.webobjects.eocontrol.EOGlobalID,ERXCopyable<?>> copiedObjects, T source)
T
- the Type of the source
copiedObjects
- the copied objects keyed on the EOGlobalID of the object
the copy was made from.source
- Copyright © 2002 – 2020 Project Wonder.