Class AbstractHrcEntityDO<T extends HrcEntity>

All Implemented Interfaces:
IBaseDO<T>
Direct Known Subclasses:
ClassificationDO, CollectionDO, NavigationDO, NodeDO

public abstract class AbstractHrcEntityDO<T extends HrcEntity> extends AbstractComplexEntityDO<T>
  • Constructor Details

    • AbstractHrcEntityDO

      public AbstractHrcEntityDO()
  • Method Details

    • copy

      public T copy(T source, T parentForCopy) throws ApplicationException
      Creates a deep copy of given HrcEntity, i.e. copies also all offspring. For large hierarchical trees this can take substantial time. Subclass of HrcEntity passed to this method must implement a constructor that takes as sole argument an instance of this class, otherwise an ApplicationException is thrown. The copy constructor should set all properties that must be copied but not the dependent objects such as entityToAttributes.
      Parameters:
      source - HrcEntity, mandatory
      parentForCopy - HrcEntity, mandatory if hierarchy level of source demands a parent. Gives the parent to which copied object should belong. parentForCopy must be of same type as parent of source if the levels of the hierarchy are differentiated by type.
      Returns:
      copy
      Throws:
      ApplicationException
    • getAllOffspring

      public List<T> getAllOffspring(T parent)