Module org.tquadrat.bloodpressure
Class ConfigurationBase
java.lang.Object
org.tquadrat.bloodpressure.internal.ConfigurationBase
- All Implemented Interfaces:
Configuration
,org.tquadrat.foundation.config.CLIBeanSpec
,org.tquadrat.foundation.config.ConfigBeanSpec
,org.tquadrat.foundation.config.I18nSupport
,org.tquadrat.foundation.config.INIBeanSpec
@ClassVersion(sourceVersion="$Id: ConfigurationBase.java 122 2022-02-12 20:09:13Z tquadrat $")
@API(status=STABLE,
since="0.0.1")
public abstract class ConfigurationBase
extends Object
implements Configuration
The base class for the configuration bean.
- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: ConfigurationBase.java 122 2022-02-12 20:09:13Z tquadrat $
- Since:
- 0.0.1
- UML Diagram
-
UML Diagram for "org.tquadrat.bloodpressure.internal.ConfigurationBase"
-
Field Summary
Fields inherited from interface org.tquadrat.foundation.config.CLIBeanSpec
ARG_FILE_ESCAPE, LEAD_IN
Fields inherited from interface org.tquadrat.bloodpressure.Configuration
BASE_BUNDLE_NAME, COLUMN_BLOODPRESSURE_DATA_PRIMARY_KEY, MESSAGE_PREFIX, TABLE_BLOODPRESSURE_DATA
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Creates a new instance ofConfigurationBase
. -
Method Summary
Modifier and TypeMethodDescriptioninitData()
Initialises the configuration bean.final void
initializeDatabase
(Connection connection) In case a new database was created, a call to this method will initialise it.final Connection
Retrieves the connection to the database.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.tquadrat.foundation.config.CLIBeanSpec
dumpParamFileTemplate, parseCommandLine, printUsage, retrieveParseErrorMessage
Methods inherited from interface org.tquadrat.foundation.config.ConfigBeanSpec
addListener, getCharset, getLocale, getResourceBundle, getTimezone, isDebug, isTest, removeListener, setCharset, setLocale, setTimezone
Methods inherited from interface org.tquadrat.bloodpressure.Configuration
getBirthdate, getClock, getDatabaseName, getDatabasePassword, getDataFolder, getDumpFile, getEndDate, getImportCharset, getImportFile, getImportFormat, getImportSource, getImportTimeZone, getName, getReportFile, getReportFormat, getReportStyle, getStartDate, getUsername, setClock
Methods inherited from interface org.tquadrat.foundation.config.I18nSupport
getMessage, getMessage, getMessagePrefix, getString, getText, getText
Methods inherited from interface org.tquadrat.foundation.config.INIBeanSpec
loadINIFile, obtainINIFile, updateINIFile
-
Constructor Details
-
ConfigurationBase
protected ConfigurationBase()Creates a new instance ofConfigurationBase
.
-
-
Method Details
-
initData
Initialises the configuration bean.- Specified by:
initData
in interfaceConfiguration
- Returns:
- The initialisation data.
-
initializeDatabase
In case a new database was created, a call to this method will initialise it.- Specified by:
initializeDatabase
in interfaceConfiguration
- Parameters:
connection
- The database connection.- Throws:
SQLException
- The initialisation of the database failed.
-
retrieveConnection
Retrieves the connection to the database.- Specified by:
retrieveConnection
in interfaceConfiguration
- Returns:
- The connection to the database.
- Throws:
SQLException
- There is a problem with retrieving the database connection.
-