public static class TemporaryObjectID.CopyBackPolicy extends IDPolicy.DefaultIDPolicy
IDPolicy.DBLinkIDPolicy, IDPolicy.DefaultIDPolicy, IDPolicy.SameIDPolicy, IDPolicy.TemporaryIDPolicy
Constructor and Description |
---|
TemporaryObjectID.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, getReverseIDMap
protected DBObjectID getNewID(DBObject original, DBObject copy)
IDPolicy
This method cannot modify the underlying objects.
getNewID
in class IDPolicy.DefaultIDPolicy