Class BaseDomainType

    • Constructor Detail

      • BaseDomainType

        public BaseDomainType()
    • Method Detail

      • initialize

        public void initialize()
        Method is empty in this class, subclasses should override and call super.initialize() (to allow future additional initialization in this class). Note: any subclass should clean-up and close database connections or hibernate sessions. If this is not done then the update.database task may hang when disabling foreign keys.
        Specified by:
        initialize in interface DomainType
      • setReference

        public void setReference​(Reference reference)
        Description copied from interface: DomainType
        The ModelReference is instantiated for each reference record in AD_Reference. When it is instantiated the original id of the reference record is passed in using this method.
        Specified by:
        setReference in interface DomainType
        Parameters:
        reference - the record for which the ModelReference is instantiated.
      • setModelProvider

        public void setModelProvider​(ModelProvider modelProvider)
        Description copied from interface: DomainType
        The reference classes are instantiated by the ModelProvider. The ModelProvider can be used by the reference class to obtain other model related information.
        Specified by:
        setModelProvider in interface DomainType
        Parameters:
        modelProvider - the ModelProvider instance responsible for building the internal and in-memory model.
      • getClasses

        public List<Class<?>> getClasses()
        This method should be implemented by DomainTypes which require the usage of certain non-standard entities in the initialize() method.
        Returns:
        The returned list should contain the classes of the entities which need to be accessed