Package adams.db.mysql
Class SpectralDbBackend
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.db.AbstractSpectralDbBackend
-
- adams.db.mysql.SpectralDbBackend
-
- 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.BackendManager,SpectralDbBackend,Serializable
public class SpectralDbBackend extends AbstractSpectralDbBackend
MySQL Spectral backend.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.db.AbstractSpectralDbBackend
BACKEND_AUTODETECT, BACKEND_MYSQL, KEY_BACKEND, m_Initialized, m_Properties, m_Singleton
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
Fields inherited from interface adams.db.SpectralDbBackend
FILENAME
-
-
Constructor Summary
Constructors Constructor Description SpectralDbBackend()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SampleDataIntfgetSampleData(adams.db.AbstractDatabaseConnection conn)Returns the handler for the sample data table.SpectrumIntfgetSpectrum(adams.db.AbstractDatabaseConnection conn)Returns the handler for the spectrum table.StringglobalInfo()-
Methods inherited from class adams.db.AbstractSpectralDbBackend
getProperties, getSingleton
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, defineOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
- Specified by:
globalInfoin interfaceadams.core.GlobalInfoSupporter- Specified by:
globalInfoin classadams.core.option.AbstractOptionHandler
-
getSpectrum
public SpectrumIntf getSpectrum(adams.db.AbstractDatabaseConnection conn)
Returns the handler for the spectrum table.- Parameters:
conn- the database connection- Returns:
- the handler
-
getSampleData
public SampleDataIntf getSampleData(adams.db.AbstractDatabaseConnection conn)
Returns the handler for the sample data table.- Parameters:
conn- the database connection- Returns:
- the handler
-
-