|
DataBridge Documentation 2.0.18
A Java library for managing database connections and transactions
|
Public Member Functions | |
| boolean | getBoolean (String key) |
| String | getDbPassword () |
| boolean | getDbRetry () |
| int | getDbRetryDelay () |
| int | getDbRetryTimes () |
| String | getDbUrl () |
| String | getDbUser () |
| int | getInt (String key) |
| String | getLogFile () |
| LogLevel | getLogLevel () |
| String | getString (String key) |
| void | printConfig () |
| void | saveConfig () |
| void | setProperty (String key, String value) |
Static Public Member Functions | |
| static void | generate () |
| static Config | getInstance () |
The Config class is a singleton utility class that loads and saves application configuration from and to a properties file located in src/resources.
|
static |
Gets the singleton instance of the Config class.
Config class. | void io.github.kdesp73.databridge.helpers.Config.saveConfig | ( | ) |
Saves the current configuration properties back to the config.properties file.
|
static |
Generates a default configuration file in the src/main/resources directory.
| LogLevel io.github.kdesp73.databridge.helpers.Config.getLogLevel | ( | ) |
Gets the log level from the configuration
| String io.github.kdesp73.databridge.helpers.Config.getLogFile | ( | ) |
Gets log file from the configuration.
| String io.github.kdesp73.databridge.helpers.Config.getDbUrl | ( | ) |
Gets the database URL from the configuration.
| String io.github.kdesp73.databridge.helpers.Config.getDbUser | ( | ) |
Gets the database user from the configuration.
| String io.github.kdesp73.databridge.helpers.Config.getDbPassword | ( | ) |
Gets the database password from the configuration.
| boolean io.github.kdesp73.databridge.helpers.Config.getDbRetry | ( | ) |
Gets the database retry setting from the configuration.
true if retries are enabled, otherwise false. | int io.github.kdesp73.databridge.helpers.Config.getDbRetryTimes | ( | ) |
Gets the number of retry attempts for the database connection.
| int io.github.kdesp73.databridge.helpers.Config.getDbRetryDelay | ( | ) |
Gets the delay between retry attempts for the database connection.