public final class DbConfig extends Object
DbConfig class.
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DEFAULT_TRANSACTION_LEVEL
Constant
DEFAULT_TRANSACTION_LEVEL=Connection.TRANSACTION_REPEATABLE_READ |
static String |
MAIN_CONFIG_NAME
Constant
MAIN_CONFIG_NAME="main" |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
addConfig(Config config)
addConfig.
|
static Config |
getConfig()
Getter for the field
config. |
static Config |
getConfig(Class<? extends Model> modelClass)
Getter for the field
config. |
static Config |
getConfig(String configName)
Getter for the field
config. |
static Set<Map.Entry<String,Config>> |
getConfigSet()
getConfigSet.
|
static Class<? extends Model> |
getUsefulClass(Class<? extends Model> modelClass)
getUsefulClass.
|
static Config |
removeConfig(String configName)
removeConfig.
|
public static final String MAIN_CONFIG_NAME
MAIN_CONFIG_NAME="main"public static final int DEFAULT_TRANSACTION_LEVEL
DEFAULT_TRANSACTION_LEVEL=Connection.TRANSACTION_REPEATABLE_READpublic static Config getConfig(Class<? extends Model> modelClass)
Getter for the field config.
public static Set<Map.Entry<String,Config>> getConfigSet()
getConfigSet.
Set object.Copyright © 2023. All rights reserved.