public class InsertChain extends BaseInsert<InsertChain>
| 限定符和类型 | 字段和说明 |
|---|---|
protected Class<?> |
entityType |
protected BaseMapper |
mapper |
timeout$, conflict, insertFields, insertSelect, insertTable, insertValuescmds| 限定符 | 构造器和说明 |
|---|---|
protected |
InsertChain() |
|
InsertChain(BaseMapper mapper,
Class<?> entityType) |
|
InsertChain(MybatisMapper<?> mapper) |
| 限定符和类型 | 方法和说明 |
|---|---|
static InsertChain |
create()
非特殊情况 请使用of静态方法
使用此方法后 后续执行查询需调用一次withMapper(Mapper)方法
|
int |
execute()
执行
|
protected Class<?> |
getEntityType() |
<T> InsertChain |
insertSelect(Getter<T> field,
Cmd select) |
<T,T2> InsertChain |
insertSelect(Getter<T> field,
Getter<T2> select) |
<T,T2> InsertChain |
insertSelect(Getter<T> field,
Getter<T2> select,
Function<TableField,Cmd> fun) |
<T> InsertChain |
insertSelect(Getter<T> field,
db.sql.api.cmd.GetterField[] select,
Function<TableField[],Cmd> fun) |
InsertChain |
insertSelectQuery(Consumer<Query<?>> consumer) |
static InsertChain |
of(BaseMapper mapper,
Class<?> entityType) |
static InsertChain |
of(MybatisMapper<?> mapper) |
StringBuilder |
sql(Cmd module,
Cmd parent,
SqlBuilderContext context,
StringBuilder sqlBuilder) |
InsertChain |
withMapper(BaseMapper mapper,
Class<?> entityType)
用create静态方法的 Chain 需要调用一次此方法 用于设置 mapper
|
InsertChain |
withMapper(MybatisMapper<?> mapper)
用create静态方法的 Chain 需要调用一次此方法 用于设置 mapper
|
fields, fields, getSQLListeners, getTimeout, onConflict, timeout$, $, $, $, $, $, $, $conflict, $fields, $fields, $fromSelect, $insert, $values, conflictKeys, conflictKeys, fromSelect, getConflict, getInsertFields, getInsertSelect, getInsertTable, getInsertValues, insert, insert, valuesappend, cmds, cmdSorts, contain, dbAdapt, selectorExecuteclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfields, insert, valuescmds, cmdSorts, comparator, connect, connect, selectorExecute, sortedCmdsprotected BaseMapper mapper
protected Class<?> entityType
protected InsertChain()
public InsertChain(MybatisMapper<?> mapper)
public InsertChain(BaseMapper mapper, Class<?> entityType)
public static InsertChain of(MybatisMapper<?> mapper)
public static InsertChain of(BaseMapper mapper, Class<?> entityType)
public static InsertChain create()
protected Class<?> getEntityType()
public <T> InsertChain insertSelect(Getter<T> field, Cmd select)
public <T,T2> InsertChain insertSelect(Getter<T> field, Getter<T2> select)
public <T,T2> InsertChain insertSelect(Getter<T> field, Getter<T2> select, Function<TableField,Cmd> fun)
public <T> InsertChain insertSelect(Getter<T> field, db.sql.api.cmd.GetterField[] select, Function<TableField[],Cmd> fun)
public InsertChain insertSelectQuery(Consumer<Query<?>> consumer)
public InsertChain withMapper(MybatisMapper<?> mapper)
mapper - 操作目标实体类的mapperpublic InsertChain withMapper(BaseMapper mapper, Class<?> entityType)
mapper - 一般都是BasicMapperpublic int execute()
public StringBuilder sql(Cmd module, Cmd parent, SqlBuilderContext context, StringBuilder sqlBuilder)
sql 在接口中 Cmdsql 在接口中 db.sql.api.cmd.executor.IExecutor<InsertChain,Table,TableField>sql 在类中 BaseInsert<InsertChain>Copyright © 2025. All rights reserved.