public class DbConfig extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DbConfig.ConfigException |
| Modifier and Type | Field and Description |
|---|---|
boolean |
addJsonAnnotations |
String |
cachefile |
String |
customDriver |
String |
dbpassword |
String |
dburl |
String |
dbuser |
boolean |
dependencyInjection |
| Constructor and Description |
|---|
DbConfig() |
| Modifier and Type | Method and Description |
|---|---|
static DbConfig |
fromConfigAnnotation(LazySQLConfig cfg) |
static DbConfig |
fromConfigFile(File file) |
static DbConfig |
fromConfigFile(String filename) |
static DbConfig |
fromEnvironment() |
public String dburl
public String dbuser
public String dbpassword
public String cachefile
public String customDriver
public boolean dependencyInjection
public boolean addJsonAnnotations
public static DbConfig fromEnvironment()
public static DbConfig fromConfigAnnotation(LazySQLConfig cfg) throws DbConfig.ConfigException
DbConfig.ConfigExceptionpublic static DbConfig fromConfigFile(String filename) throws DbConfig.ConfigException
DbConfig.ConfigExceptionpublic static DbConfig fromConfigFile(File file) throws DbConfig.ConfigException
DbConfig.ConfigExceptionCopyright © 2019. All rights reserved.