Package adams.db
Class AbstractDbBackend
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.db.AbstractDbBackend
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,SizeOfHandler
,BackendManager
,DbBackend
,Serializable
public abstract class AbstractDbBackend extends AbstractOptionHandler implements DbBackend
Ancestor for classes that provide a processing backend.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
BACKEND_AUTODETECT
static String
BACKEND_MYSQL
static String
KEY_BACKEND
protected static boolean
m_Initialized
whether the backend was initialized.protected static Properties
m_Properties
the properties with the defaults.protected static DbBackend
m_Singleton
the singleton.-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description AbstractDbBackend()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static Properties
getProperties()
Returns the underlying properties.static DbBackend
getSingleton()
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.db.DbBackend
getLog, getSQL, isSupported
-
Methods inherited from interface adams.core.Destroyable
destroy
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel, setLoggingLevel
-
Methods inherited from interface adams.core.logging.LoggingSupporter
getLogger, isLoggingEnabled
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, defineOptions, getOptionManager, toCommandLine
-
-
-
-
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 Properties m_Properties
the properties with the defaults.
-
m_Singleton
protected static DbBackend m_Singleton
the singleton.
-
m_Initialized
protected static boolean m_Initialized
whether the backend was initialized.
-
-
Method Detail
-
getProperties
protected static Properties getProperties()
Returns the underlying properties.- Returns:
- the properties
-
getSingleton
public static DbBackend getSingleton()
Returns the singleton.- Returns:
- the singleton
-
-