| 程序包 | 说明 |
|---|---|
| com.mybatisflex.core | |
| com.mybatisflex.core.keygen |
| 限定符和类型 | 字段和说明 |
|---|---|
private FlexGlobalConfig.KeyConfig |
FlexGlobalConfig.keyConfig
全局的 ID 生成策略配置,当 @Id 未配置 或者 配置 KeyType 为 None 时
使用当前全局配置
|
| 限定符和类型 | 方法和说明 |
|---|---|
FlexGlobalConfig.KeyConfig |
FlexGlobalConfig.getKeyConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
FlexGlobalConfig.setKeyConfig(FlexGlobalConfig.KeyConfig keyConfig) |
| 限定符和类型 | 方法和说明 |
|---|---|
static com.mybatisflex.annotation.KeyType |
MybatisKeyGeneratorUtil.getKeyType(IdInfo idInfo,
FlexGlobalConfig.KeyConfig globalKeyConfig)
获取主键的 keyType,优先通过 @id 获取,获取不到通过全局配置获取
|
static String |
MybatisKeyGeneratorUtil.getKeyValue(IdInfo idInfo,
FlexGlobalConfig.KeyConfig globalKeyConfig) |
static boolean |
MybatisKeyGeneratorUtil.isKeyBefore(IdInfo idInfo,
FlexGlobalConfig.KeyConfig globalKeyConfig) |
Copyright © 2023. All rights reserved.