Package adams.flow.transformer.report
Class UpdateDatabaseID
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.transformer.report.AbstractReportPreProcessor<SampleData>
-
- adams.flow.transformer.report.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.AbstractDatabaseConnectionm_DatabaseConnectionthe database connection in use.protected Stringm_Formatthe form of this data.
-
Constructor Summary
Constructors Constructor Description UpdateDatabaseID()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddefineOptions()Adds options to the internal list of options.protected SampleDatadoPreProcess(SampleData data)Performs the actual pre-processing.StringformatTipText()Returns the tip text for this property.protected adams.db.AbstractDatabaseConnectiongetDatabaseConnection()Determines the database connection in the flow.protected adams.db.AbstractDatabaseConnectiongetDefaultDatabaseConnection()Returns the default database connection.protected StringgetDefaultFormat()Returns the default format of the spectra.StringgetFormat()Returns the format string of the data.StringglobalInfo()Returns a string describing the object.protected voidreset()Resets the scheme.voidsetFormat(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
-
-
-
-
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.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceadams.core.GlobalInfoSupporter- Specified by:
globalInfoin classadams.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:
defineOptionsin interfaceadams.core.option.OptionHandler- Overrides:
defineOptionsin classadams.core.option.AbstractOptionHandler
-
reset
protected void reset()
Resets the scheme.- Overrides:
resetin classadams.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:
doPreProcessin classadams.flow.transformer.report.AbstractReportPreProcessor<SampleData>- Parameters:
data- the data to process- Returns:
- the processed data
-
-