public class ModelInsertContext<T extends Model> extends SQLCmdInsertContext<BaseInsert,T> implements SetIdMethod
entityType, useBatchExecutorexecution, sql, sqlBuilderContext| 构造器和说明 |
|---|
ModelInsertContext(BaseInsert<?> insert,
T model,
SaveStrategy strategy) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getIdColumnName()
获取ID的列名
|
org.apache.ibatis.type.TypeHandler<?> |
getIdTypeHandler(org.apache.ibatis.session.Configuration configuration)
获取ID的TypeHandler
|
Object |
getInsertData(int index)
获取插入的实例
|
int |
getInsertSize()
插入的个数
|
boolean |
idHasValue()
ID是否有值
|
void |
init(DbType dbType) |
void |
setId(Object id,
int index)
设置插入ID
|
getEntityType, getInsertData, setUseBatchExecutor, sqlgetDbType, getExecution, getParameterspublic ModelInsertContext(BaseInsert<?> insert, T model, SaveStrategy strategy)
public void init(DbType dbType)
init 在接口中 SQLCmdContext<BaseInsert>init 在类中 BaseSQLCmdContext<BaseInsert>public void setId(Object id, int index)
SetIdMethodsetId 在接口中 SetIdMethodid - ID的值index - 第几个public boolean idHasValue()
SetIdMethodidHasValue 在接口中 SetIdMethodpublic int getInsertSize()
SetIdMethodgetInsertSize 在接口中 SetIdMethodpublic Object getInsertData(int index)
SetIdMethodgetInsertData 在接口中 SetIdMethodpublic org.apache.ibatis.type.TypeHandler<?> getIdTypeHandler(org.apache.ibatis.session.Configuration configuration)
SetIdMethodgetIdTypeHandler 在接口中 SetIdMethodpublic String getIdColumnName()
SetIdMethodgetIdColumnName 在接口中 SetIdMethodCopyright © 2025. All rights reserved.