| Package | Description |
|---|---|
| com.mybatisflex.core.keygen |
主键生成功能。
|
| com.mybatisflex.core.table |
实体类(表)结构元数据解析。
|
| Modifier and Type | Field and Description |
|---|---|
protected IdInfo |
CustomKeyGenerator.idInfo |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.ibatis.executor.keygen.KeyGenerator |
MybatisKeyGeneratorUtil.createIdKeyGenerator(TableInfo tableInfo,
org.apache.ibatis.mapping.MappedStatement ms,
IdInfo idInfo) |
static 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) |
| Constructor and Description |
|---|
CustomKeyGenerator(org.apache.ibatis.session.Configuration configuration,
TableInfo tableInfo,
IdInfo idInfo) |
| Constructor and Description |
|---|
MultiPrimaryKeyGenerator(org.apache.ibatis.mapping.MappedStatement mappedStatement,
TableInfo tableInfo,
List<IdInfo> primaryKeyList) |
| Modifier and Type | Method and Description |
|---|---|
List<IdInfo> |
TableInfo.getPrimaryKeyList() |
Copyright © 2024. All rights reserved.