Class DefaultAsCloneStrategy

  • All Implemented Interfaces:
    AsCloneStrategy

    public class DefaultAsCloneStrategy
    extends java.lang.Object
    implements AsCloneStrategy
    Default implementation of the clone strategy.
    • Constructor Detail

      • DefaultAsCloneStrategy

        public DefaultAsCloneStrategy()
    • Method Detail

      • clone

        public <T extends ItemModel> T clone​(T objectToClone)
        Description copied from interface: AsCloneStrategy
        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.
        Specified by:
        clone in interface AsCloneStrategy
        Parameters:
        objectToClone - - the original model
        Returns:
        the deep copy of the model
      • setModelService

        public void setModelService​(ModelService modelService)
      • setModelCloningContext

        public void setModelCloningContext​(ModelCloningContext modelCloningContext)