Interface AsCloneStrategy
-
- All Known Implementing Classes:
DefaultAsCloneStrategy
public interface AsCloneStrategyStrategy for cloning.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends ItemModel>
Tclone(T objectToClone)Creates a deep copy of the given model.
-
-
-
Method Detail
-
clone
<T extends ItemModel> T clone(T objectToClone)
Creates a deep copy of the given model. The resulting object is not persisted yet in order to allow modifications like unique key adjustments etc.- Parameters:
objectToClone- - the original model- Returns:
- the deep copy of the model
-
-