public class SequenceKeyGenerator extends Object implements org.apache.ibatis.executor.keygen.KeyGenerator
GenerationType.SEQUENCE_KEY 策略,触发 Sequence
接口实现类来生成序列值,并更新到实体对象中SequenceKey,
Sequence| Modifier and Type | Field and Description |
|---|---|
static String |
SEQUENCE_KEY_SUFFIX
sequence key 默认的后缀名
|
| Constructor and Description |
|---|
SequenceKeyGenerator(TableInfo tableInfo,
String sqlId,
boolean executeBefore)
初始化序列生成器
|
| Modifier and Type | Method and Description |
|---|---|
void |
processAfter(org.apache.ibatis.executor.Executor executor,
org.apache.ibatis.mapping.MappedStatement ms,
Statement stmt,
Object parameter) |
void |
processBefore(org.apache.ibatis.executor.Executor executor,
org.apache.ibatis.mapping.MappedStatement ms,
Statement stmt,
Object parameter) |
public static final String SEQUENCE_KEY_SUFFIX
Copyright © 2018–2019. All rights reserved.