public class MultiPrimaryKeyGenerator extends Object implements org.apache.ibatis.executor.keygen.KeyGenerator, IMultiKeyGenerator
| Constructor and Description |
|---|
MultiPrimaryKeyGenerator(org.apache.ibatis.mapping.MappedStatement mappedStatement,
TableInfo tableInfo,
List<IdInfo> primaryKeyList) |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getKeyColumnNames()
自动生成主键的 columns 字段
|
boolean |
hasGeneratedKeys()
是否需要数据库 自动生成主键
|
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 void processBefore(org.apache.ibatis.executor.Executor executor,
org.apache.ibatis.mapping.MappedStatement ms,
Statement stmt,
Object parameter)
processBefore in interface 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 in interface org.apache.ibatis.executor.keygen.KeyGeneratorpublic boolean hasGeneratedKeys()
hasGeneratedKeys in interface IMultiKeyGeneratorpublic String[] getKeyColumnNames()
getKeyColumnNames in interface IMultiKeyGeneratorCopyright © 2024. All rights reserved.