Package me.hsgamer.hscore.database
Interface Driver
- All Known Subinterfaces:
H2BaseDriver
,SqliteBaseDriver
- All Known Implementing Classes:
H2LocalDriver
,H2MemoryDriver
,H2ServerDriver
,LocalDriver
,MariaDBDriver
,MySqlDriver
,PostgreSqlDriver
,SqliteFileDriver
,SqliteMemoryDriver
,SqlServerDriver
public interface Driver
A driver for database connection
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
applyDefaultSetting
(Setting setting) Apply the default settingconvertURL
(Setting setting) Get the JDBC url from the configstatic String
createPropertyString
(Setting setting) Create the property string for the URLstatic String
createPropertyString
(Setting setting, String prefix, String delimiter) Create the property string for the URLGet the driver classdefault String
Get the driver class name
-
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
-
getDriverClassName
Get the driver class name- Returns:
- the driver class name
-