public static class TemporaryObjectID.CopyBackPolicy extends IDPolicy.DefaultIDPolicy
IDPolicy.DBLinkIDPolicy, IDPolicy.DefaultIDPolicy, IDPolicy.SameIDPolicy, IDPolicy.TemporaryIDPolicy| Constructor and Description |
|---|
CopyBackPolicy() |
| Modifier and Type | Method and Description |
|---|---|
protected DBObjectID |
getNewID(DBObject original,
DBObject copy)
Given the original object, the copy is given an ID depending on the
policy.
|
copyID, getIDMap, getReverseIDMapprotected DBObjectID getNewID(DBObject original, DBObject copy)
IDPolicyThis method cannot modify the underlying objects.
getNewID in class IDPolicy.DefaultIDPolicy