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 voidapplyDefaultSetting(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 URLGet 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
-