Class EntityCopier<T>

java.lang.Object
org.sklsft.commons.mapper.impl.EntityCopier<T>
All Implemented Interfaces:
Copier<T>

public class EntityCopier<T> extends Object implements Copier<T>
  • Constructor Details

    • EntityCopier

      public EntityCopier(Class<T> clazz)
  • Method Details

    • copy

      public T copy(Object src, boolean copyIgnoredFields)
      Description copied from interface: Copier
      Copy an Object
      If a field has the annotation , it will be copied only if copyIgnoredField = true.
      Specified by:
      copy in interface Copier<T>
      Parameters:
      src - object that will be copied.
      Returns:
      the copied object.
    • copy

      public T copy(Object src)
      Description copied from interface: Copier
      Copy an Object
      If a field has the annotation , it will not be copied.
      Specified by:
      copy in interface Copier<T>
      Parameters:
      src - object that will be copied.
      Returns:
      the copied object.