Package adams.db
Class AbstractSpectralDbBackend
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.db.AbstractSpectralDbBackend
-
- 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
- Direct Known Subclasses:
SpectralDbBackend,SpectralDbBackend,SpectralDbBackend,SpectralDbBackend,SpectralDbBackend,SpectralDbBackend,SpectralDbBackend
public abstract class AbstractSpectralDbBackend extends adams.core.option.AbstractOptionHandler implements SpectralDbBackend
Ancestor for classes that provide a spectral DB backend.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringBACKEND_AUTODETECTstatic StringBACKEND_MYSQLstatic StringKEY_BACKENDprotected static booleanm_Initializedwhether the backend was initialized.protected static adams.core.Propertiesm_Propertiesthe properties with the defaults.protected static SpectralDbBackendm_Singletonthe 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 AbstractSpectralDbBackend()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static adams.core.PropertiesgetProperties()Returns the underlying properties.static SpectralDbBackendgetSingleton()Returns the singleton.-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, defineOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, 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
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel, setLoggingLevel
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, defineOptions, getOptionManager, toCommandLine
-
Methods inherited from interface adams.db.SpectralDbBackend
getSampleData, getSpectrum
-
-
-
-
Field Detail
-
KEY_BACKEND
public static final String KEY_BACKEND
- See Also:
- Constant Field Values
-
BACKEND_AUTODETECT
public static final String BACKEND_AUTODETECT
- See Also:
- Constant Field Values
-
BACKEND_MYSQL
public static final String BACKEND_MYSQL
- See Also:
- Constant Field Values
-
m_Properties
protected static adams.core.Properties m_Properties
the properties with the defaults.
-
m_Singleton
protected static SpectralDbBackend m_Singleton
the singleton.
-
m_Initialized
protected static boolean m_Initialized
whether the backend was initialized.
-
-
Method Detail
-
getProperties
protected static adams.core.Properties getProperties()
Returns the underlying properties.- Returns:
- the properties
-
getSingleton
public static SpectralDbBackend getSingleton()
Returns the singleton.- Returns:
- the singleton
-
-