Package adams.db
Class Drivers
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.db.Drivers
-
- All Implemented Interfaces:
LoggingSupporter,SizeOfHandler,Serializable
public class Drivers extends LoggingObject
Helper class for loading JDBC driver classes.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringFILENAMEthe filename.static StringKEY_DRIVERSthe key for the drivers list in the props file.static StringKEY_EXCLUDEDthe key for the excluded drivers list in the props file.protected Listm_DriversThe JDBC drivers.protected Propertiesm_Propertiesthe properties for database access.protected static Driversm_Singletonthe singleton.-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ListgetDrivers()Returns the vector with drivers.static DriversgetSingleton()Returns the singleton, instantiates it if necessary.protected voidinitialize()Initializes drivers and data types.-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
FILENAME
public static final String FILENAME
the filename.- See Also:
- Constant Field Values
-
KEY_DRIVERS
public static final String KEY_DRIVERS
the key for the drivers list in the props file.- See Also:
- Constant Field Values
-
KEY_EXCLUDED
public static final String KEY_EXCLUDED
the key for the excluded drivers list in the props file.- See Also:
- Constant Field Values
-
m_Singleton
protected static Drivers m_Singleton
the singleton.
-
m_Properties
protected Properties m_Properties
the properties for database access.
-
m_Drivers
protected transient List m_Drivers
The JDBC drivers.
-
-
Method Detail
-
initialize
protected void initialize()
Initializes drivers and data types.
-
getDrivers
public List getDrivers()
Returns the vector with drivers. Initializes it if necessary.- Returns:
- the drivers
-
getSingleton
public static Drivers getSingleton()
Returns the singleton, instantiates it if necessary.- Returns:
- the singleton
-
-