Class AbstractDataContainerFileImport<T extends DataContainer>

    • Field Detail

      • BACKUP_CONTAINERS

        public static final String BACKUP_CONTAINERS
        the key for storing the current containers in the backup.
        See Also:
        Constant Field Values
      • m_IDs

        protected List<Integer> m_IDs
        the IDs of the containers that have been imported.
      • m_Containers

        protected List<T extends DataContainer> m_Containers
        the containers that have been read.
      • m_Import

        protected boolean m_Import
        whether to import the containers into the database.
      • m_Forward

        protected boolean m_Forward
        whether to forward the containers instead of the IDs.
    • Constructor Detail

      • AbstractDataContainerFileImport

        public AbstractDataContainerFileImport()
    • Method Detail

      • getDefaultReader

        protected abstract AbstractDataContainerReader<T> getDefaultReader()
        Returns the default reader for loading the data.
        Returns:
        the default reader
      • readerTipText

        public String readerTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setForward

        public void setForward​(boolean value)
        Sets whether to forward the containers instead of the IDs.
        Parameters:
        value - if true then the containers are forwarded
      • getForward

        public boolean getForward()
        Returns whether to forward the containers or the IDs.
        Returns:
        true if the containers are forwarded
      • forwardTipText

        public String forwardTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setImport

        public void setImport​(boolean value)
        Sets whether to import the containers into the database.
        Parameters:
        value - if true then the containers are imported
      • getImport

        public boolean getImport()
        Returns whether to import the containers into the database.
        Returns:
        true if the containers are imported
      • importTipText

        public String importTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • reset

        protected void reset()
        Resets the scheme.
        Overrides:
        reset in class AbstractActor
      • getDataProvider

        protected abstract DataProvider<T> getDataProvider()
        Returns the report provider to use for writing the reports to the database.
        Returns:
        the provider to use
      • getDataContainerClass

        protected abstract Class getDataContainerClass()
        Returns the data container class in use.
        Returns:
        the class
      • generates

        public Class[] generates()
        Returns the class of objects that it generates.
        Returns:
        java.lang.Integer.class