public class MybatisSelectKeyGenerator
extends org.apache.ibatis.executor.keygen.SelectKeyGenerator
| 限定符和类型 | 字段和说明 |
|---|---|
protected boolean |
executeBefore |
protected org.apache.ibatis.mapping.MappedStatement |
keyStatement |
| 构造器和说明 |
|---|
MybatisSelectKeyGenerator(org.apache.ibatis.mapping.MappedStatement keyStatement,
boolean executeBefore) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
generatedKeys(org.apache.ibatis.executor.Executor executor,
org.apache.ibatis.mapping.MappedStatement ms,
SetIdMethod setIdMethod) |
protected List<Object> |
getId(org.apache.ibatis.executor.Executor keyExecutor,
SetIdMethod setIdMethod,
int index) |
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) |
protected void |
processGeneratedKeys(org.apache.ibatis.executor.Executor executor,
org.apache.ibatis.mapping.MappedStatement ms,
SetIdMethod parameter) |
protected final boolean executeBefore
protected final org.apache.ibatis.mapping.MappedStatement keyStatement
public MybatisSelectKeyGenerator(org.apache.ibatis.mapping.MappedStatement keyStatement,
boolean executeBefore)
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.KeyGeneratorprocessBefore 在类中 org.apache.ibatis.executor.keygen.SelectKeyGeneratorpublic void processAfter(org.apache.ibatis.executor.Executor executor,
org.apache.ibatis.mapping.MappedStatement ms,
Statement stmt,
Object parameter)
processAfter 在接口中 org.apache.ibatis.executor.keygen.KeyGeneratorprocessAfter 在类中 org.apache.ibatis.executor.keygen.SelectKeyGeneratorprotected void processGeneratedKeys(org.apache.ibatis.executor.Executor executor,
org.apache.ibatis.mapping.MappedStatement ms,
SetIdMethod parameter)
protected void generatedKeys(org.apache.ibatis.executor.Executor executor,
org.apache.ibatis.mapping.MappedStatement ms,
SetIdMethod setIdMethod)
throws SQLException
SQLExceptionprotected List<Object> getId(org.apache.ibatis.executor.Executor keyExecutor, SetIdMethod setIdMethod, int index) throws SQLException
SQLExceptionCopyright © 2025. All rights reserved.