Class AbstractReportValueDbWriter<T extends Report>

    • Field Detail

      • m_Fields

        protected Field[] m_Fields
        the fields to write to DB.
    • Constructor Detail

      • AbstractReportValueDbWriter

        public AbstractReportValueDbWriter()
    • Method Detail

      • getDefaultFields

        protected abstract AbstractField[] getDefaultFields()
      • fieldsTipText

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

        public abstract Class[] accepts()
        Returns the class that the consumer accepts.
        Returns:
        the report class
      • generates

        public abstract Class[] generates()
        Returns the class of objects that it generates.
        Returns:
        the report class
      • getReportProvider

        protected abstract ReportProviderByID<T> getReportProvider()
        Returns the report provider to use for writing the report values to the database.
        Returns:
        the provider to use
      • extractID

        protected abstract String extractID​(T report)
        Extracts the ID from the report.
        Parameters:
        report - the report to extract the ID from
        Returns:
        the ID
      • assembleFields

        protected Field[] assembleFields()
        Method for assembling the fields to overwrite.
        Default implementation just returns the supplied fields
        Returns:
        the fields
      • extractSubset

        protected abstract T extractSubset​(T report)
        Generates a subset of the report, which only contains the specified fields.
        Parameters:
        report - the report to process
        Returns:
        the subset report