Class UpdateDatabaseID

  • All Implemented Interfaces:
    adams.core.Destroyable, adams.core.GlobalInfoSupporter, adams.core.logging.LoggingLevelHandler, adams.core.logging.LoggingSupporter, adams.core.option.OptionHandler, adams.core.SizeOfHandler, adams.db.DatabaseConnectionUser, Serializable

    public class UpdateDatabaseID
    extends adams.flow.transformer.report.AbstractReportPreProcessor<SampleData>
    implements adams.db.DatabaseConnectionUser
    Attempts to update the database ID of the sample data.
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected adams.db.AbstractDatabaseConnection m_DatabaseConnection
      the database connection in use.
      protected String m_Format
      the form of this data.
      • Fields inherited from class adams.flow.transformer.report.AbstractReportPreProcessor

        m_Owner
      • Fields inherited from class adams.core.option.AbstractOptionHandler

        m_OptionManager
      • Fields inherited from class adams.core.logging.LoggingObject

        m_Logger, m_LoggingIsEnabled, m_LoggingLevel
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void defineOptions()
      Adds options to the internal list of options.
      protected SampleData doPreProcess​(SampleData data)
      Performs the actual pre-processing.
      String formatTipText()
      Returns the tip text for this property.
      protected adams.db.AbstractDatabaseConnection getDatabaseConnection()
      Determines the database connection in the flow.
      protected adams.db.AbstractDatabaseConnection getDefaultDatabaseConnection()
      Returns the default database connection.
      protected String getDefaultFormat()
      Returns the default format of the spectra.
      String getFormat()
      Returns the format string of the data.
      String globalInfo()
      Returns a string describing the object.
      protected void reset()
      Resets the scheme.
      void setFormat​(String value)
      Sets the format string of the data (always converted to upper case).
      • Methods inherited from class adams.flow.transformer.report.AbstractReportPreProcessor

        check, getOwner, preProcess, setOwner
      • Methods inherited from class adams.core.option.AbstractOptionHandler

        cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
      • Methods inherited from class adams.core.logging.LoggingObject

        configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
      • Methods inherited from interface adams.core.logging.LoggingLevelHandler

        getLoggingLevel
    • Field Detail

      • m_Format

        protected String m_Format
        the form of this data.
      • m_DatabaseConnection

        protected adams.db.AbstractDatabaseConnection m_DatabaseConnection
        the database connection in use.
    • Constructor Detail

      • UpdateDatabaseID

        public UpdateDatabaseID()
    • Method Detail

      • globalInfo

        public String globalInfo()
        Returns a string describing the object.
        Specified by:
        globalInfo in interface adams.core.GlobalInfoSupporter
        Specified by:
        globalInfo in class adams.core.option.AbstractOptionHandler
        Returns:
        a description suitable for displaying in the gui
      • defineOptions

        public void defineOptions()
        Adds options to the internal list of options.
        Specified by:
        defineOptions in interface adams.core.option.OptionHandler
        Overrides:
        defineOptions in class adams.core.option.AbstractOptionHandler
      • reset

        protected void reset()
        Resets the scheme.
        Overrides:
        reset in class adams.core.option.AbstractOptionHandler
      • getDefaultFormat

        protected String getDefaultFormat()
        Returns the default format of the spectra.
        Returns:
        the default
      • setFormat

        public void setFormat​(String value)
        Sets the format string of the data (always converted to upper case). Use null to set default format.
        Parameters:
        value - the format
      • getFormat

        public String getFormat()
        Returns the format string of the data.
        Returns:
        the format
      • formatTipText

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

        protected adams.db.AbstractDatabaseConnection getDefaultDatabaseConnection()
        Returns the default database connection.
        Returns:
        the default database connection
      • getDatabaseConnection

        protected adams.db.AbstractDatabaseConnection getDatabaseConnection()
        Determines the database connection in the flow.
        Returns:
        the database connection to use
      • doPreProcess

        protected SampleData doPreProcess​(SampleData data)
        Performs the actual pre-processing.
        Specified by:
        doPreProcess in class adams.flow.transformer.report.AbstractReportPreProcessor<SampleData>
        Parameters:
        data - the data to process
        Returns:
        the processed data