public interface BatchCrud extends IWrapper
| 限定符和类型 | 方法和说明 |
|---|---|
BatchCrud |
addDelete(IBaseQuery... deletes)
按顺序添加delete语句
|
BatchCrud |
addInsert(IEntity... entities)
按顺序添加Insert语句
|
default BatchCrud |
addInsertSelect(String insertTable,
FieldMapping[] fields,
IQuery query)
添加 insert into a_table (fields) select fields from b_table where
|
BatchCrud |
addInsertSelect(String insertTable,
String[] fields,
IQuery query)
添加 insert into a_table (fields) select fields from b_table where
|
BatchCrud |
addUpdate(IBaseUpdate... updates)
按顺序添加update语句
|
static BatchCrud |
batch()
构造批量增删改构造器
|
BatchCrud |
setDbType(DbType dbType)
数据库类型
|
getWrapperData, hint, hint, wherestatic BatchCrud batch()
BatchCrud addInsertSelect(String insertTable, String[] fields, IQuery query)
insertTable - 要插入数据的表名, inset into insertTablefields - 要插入的字段列表, a_table fieldsquery - 要插入的字段值, query: select xxx from b_tableIEntityMapper.insertSelect(String[], IQuery)default BatchCrud addInsertSelect(String insertTable, FieldMapping[] fields, IQuery query)
insertTable - 要插入数据的表名, inset into insertTablefields - 要插入的字段列表, a_table fieldsquery - 要插入的字段值, query: select xxx from b_tableIEntityMapper.insertSelect(String[], IQuery)BatchCrud addUpdate(IBaseUpdate... updates)
updates - 更新列表BatchCrud addDelete(IBaseQuery... deletes)
deletes - 生成条件列表Copyright © 2021. All rights reserved.