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.AbstractDatabaseConnection
m_DatabaseConnection
the database connection in use.protected String
m_Format
the form of this data.
-
Constructor Summary
Constructors Constructor Description UpdateDatabaseID()
-
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
-
-
-
-
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:
globalInfo
in interfaceadams.core.GlobalInfoSupporter
- Specified by:
globalInfo
in 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:
defineOptions
in interfaceadams.core.option.OptionHandler
- Overrides:
defineOptions
in classadams.core.option.AbstractOptionHandler
-
reset
protected void reset()
Resets the scheme.- Overrides:
reset
in 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:
doPreProcess
in classadams.flow.transformer.report.AbstractReportPreProcessor<SampleData>
- Parameters:
data
- the data to process- Returns:
- the processed data
-
-