Class BaseWriterImpl<T>

    • Field Detail

      • idMapper

        protected IdMapperType idMapper
        the (primary) id mapper to use
    • Constructor Detail

      • BaseWriterImpl

        protected BaseWriterImpl​(IdMapperType idMapperType)
        constructor
        Parameters:
        idMapperType - to use as default
    • Method Detail

      • getComponentIdMappers

        protected PlanitComponentIdMappers getComponentIdMappers()
        Access to the id mappers for each component via dedicated class
        Returns:
        component id mappers container class
      • getPrimaryIdMapper

        public abstract PlanitComponentIdMapper getPrimaryIdMapper()
        The (main) Id mapper used by this writer (only present after write has been completed)
        Returns:
        mapper
      • setParentIdMappers

        public void setParentIdMappers​(PlanitComponentIdMapper... parentMappers)
        The explicit id mapping to be used by the parent(s), so we use the appropriate referencing. These are to be set before writing commences, otherwise defaults based on the(primary) idMapperType will be instantiated and used instead.
        Parameters:
        parentMappers - to register