| 程序包 | 说明 |
|---|---|
| com.mybatisflex.core.keygen |
主键生成功能。
|
| com.mybatisflex.core.row |
Db + Row 功能。
|
| 限定符和类型 | 字段和说明 |
|---|---|
protected RowKey |
RowCustomKeyGenerator.rowKey |
| 限定符和类型 | 方法和说明 |
|---|---|
private org.apache.ibatis.executor.keygen.KeyGenerator[] |
RowKeyGenerator.buildRowKeyGenerators(RowKey[] rowKeys) |
private org.apache.ibatis.executor.keygen.KeyGenerator |
RowKeyGenerator.createByRowKey(RowKey rowKey) |
| 构造器和说明 |
|---|
RowCustomKeyGenerator(RowKey rowKey) |
| 限定符和类型 | 字段和说明 |
|---|---|
static RowKey |
RowKey.AUTO
自增 ID
|
static RowKey |
RowKey.FLEX_ID
flexId
|
static RowKey |
RowKey.SNOW_FLAKE_ID
snowFlakeId
|
static RowKey |
RowKey.ULID
ulid
|
static RowKey |
RowKey.UUID
UUID 的 ID
|
| 限定符和类型 | 字段和说明 |
|---|---|
private Set<RowKey> |
Row.primaryKeys |
| 限定符和类型 | 方法和说明 |
|---|---|
(专用程序包) RowKey[] |
Row.obtainsPrimaryKeys() |
static RowKey[] |
RowCPI.obtainsPrimaryKeys(Row row) |
static RowKey |
RowKey.of(String keyColumn) |
static RowKey |
RowKey.of(String keyColumn,
KeyType keyType) |
static RowKey |
RowKey.of(String keyColumn,
KeyType keyType,
String keyTypeValue) |
static RowKey |
RowKey.of(String keyColumn,
KeyType keyType,
String keyTypeValue,
boolean before) |
| 限定符和类型 | 方法和说明 |
|---|---|
Set<RowKey> |
Row.getPrimaryKeys() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Row |
Row.ofKey(RowKey... rowKeys) |
static Row |
Row.ofKey(RowKey[] rowKeys,
Object[] value) |
static Row |
Row.ofKey(RowKey rowKey,
Object value) |
DbChain |
DbChain.setId(RowKey rowKey) |
DbChain |
DbChain.setId(RowKey rowKey,
Object value) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
Row.setPrimaryKeys(Set<RowKey> primaryKeys) |
Copyright © 2025. All rights reserved.