Package me.hsgamer.hscore.database
Interface Driver
- All Known Implementing Classes:
LocalDriver
public interface Driver
A driver for database connection
-
Method Summary
Modifier and TypeMethodDescriptiondefault SettingapplyDefaultSetting(Setting setting) Apply the default settingconvertURL(Setting setting) Get the JDBC url from the configstatic StringcreatePropertyString(Setting setting) Create the property string for the URLstatic StringcreatePropertyString(Setting setting, String prefix, String delimiter) Create the property string for the URLdefault SettingCreate a setting with the default valuesGet the driver class
-
Method Details
-
createPropertyString
Create the property string for the URL- Parameters:
setting- the settingprefix- the prefixdelimiter- the delimiter between the properties- Returns:
- the property string
-
createPropertyString
Create the property string for the URL- Parameters:
setting- the setting- Returns:
- the property string
-
getDriverClass
Get the driver class- Returns:
- the driver class
-
convertURL
Get the JDBC url from the config- Parameters:
setting- the setting- Returns:
- the JDBC url
-
applyDefaultSetting
Apply the default setting- Parameters:
setting- the setting- Returns:
- the applied setting
-
createSetting
Create a setting with the default values- Returns:
- the setting
-