public class RowKeyGenerator extends Object implements org.apache.ibatis.executor.keygen.KeyGenerator, IMultiKeyGenerator
| 限定符和类型 | 字段和说明 |
|---|---|
private List<String> |
autoKeyGeneratorNames |
private org.apache.ibatis.executor.keygen.KeyGenerator[] |
keyGenerators |
private org.apache.ibatis.mapping.MappedStatement |
ms |
private static org.apache.ibatis.executor.keygen.KeyGenerator[] |
NO_KEY_GENERATORS |
| 构造器和说明 |
|---|
RowKeyGenerator(org.apache.ibatis.mapping.MappedStatement methodMappedStatement) |
| 限定符和类型 | 方法和说明 |
|---|---|
private org.apache.ibatis.executor.keygen.KeyGenerator[] |
buildRowKeyGenerators(RowKey[] rowKeys) |
private org.apache.ibatis.executor.keygen.KeyGenerator |
createByRowKey(RowKey rowKey) |
String[] |
getKeyColumnNames()
数据库主键定义的 key
|
boolean |
isNeedGeneratedKeys()
是否需要数据库生成主键
|
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) |
private static org.apache.ibatis.executor.keygen.KeyGenerator[] NO_KEY_GENERATORS
private org.apache.ibatis.mapping.MappedStatement ms
private org.apache.ibatis.executor.keygen.KeyGenerator[] keyGenerators
private List<String> autoKeyGeneratorNames
public RowKeyGenerator(org.apache.ibatis.mapping.MappedStatement methodMappedStatement)
public void processBefore(org.apache.ibatis.executor.Executor executor, org.apache.ibatis.mapping.MappedStatement ms, Statement stmt, Object parameter)
processBefore 在接口中 org.apache.ibatis.executor.keygen.KeyGeneratorpublic void processAfter(org.apache.ibatis.executor.Executor executor, org.apache.ibatis.mapping.MappedStatement ms, Statement stmt, Object parameter)
processAfter 在接口中 org.apache.ibatis.executor.keygen.KeyGeneratorprivate org.apache.ibatis.executor.keygen.KeyGenerator[] buildRowKeyGenerators(RowKey[] rowKeys)
private org.apache.ibatis.executor.keygen.KeyGenerator createByRowKey(RowKey rowKey)
public boolean isNeedGeneratedKeys()
isNeedGeneratedKeys 在接口中 IMultiKeyGeneratorpublic String[] getKeyColumnNames()
getKeyColumnNames 在接口中 IMultiKeyGeneratorCopyright © 2023. All rights reserved.