public class RowSqlProvider extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
METHOD_RAW_SQL |
| Modifier and Type | Method and Description |
|---|---|
static String |
deleteBatchByIds(Map params)
deleteBatchByIds 的 SQL 构建。
|
static String |
deleteById(Map params)
deleteById 的 SQL 构建。
|
static String |
deleteByQuery(Map params)
deleteByQuery 的 SQL 构建。
|
static String |
insert(Map params)
insert 的 SQL 构建。
|
static String |
insertBatchWithFirstRowColumns(Map params)
insertBatch 的 SQL 构建。
|
static String |
providerRawSql(Map params)
执行原生 sql 的方法
|
static String |
selectListByQuery(Map params)
selectListByQuery 的 SQL 构建。
|
static String |
selectOneById(Map params)
selectOneById 的 SQL 构建。
|
static String |
updateBatchById(Map params)
updateBatchById 的 SQL 构建。
mysql 等链接配置需要开启 allowMultiQueries=true
|
static String |
updateById(Map params)
updateById 的 SQL 构建。
|
static String |
updateByQuery(Map params)
updateByQuery 的 SQL 构建。
|
static String |
updateEntity(Map params)
updateEntity 的 SQL 构建。
|
public static final String METHOD_RAW_SQL
public static String providerRawSql(Map params)
params - 方法参数RowMapper.insertBySql(String, Object...),
RowMapper.deleteBySql(String, Object...),
RowMapper.updateBySql(String, Object...)public static String insert(Map params)
params - 方法参数RowMapper.insert(String, String, Row)public static String insertBatchWithFirstRowColumns(Map params)
params - 方法参数RowMapper.insertBatchWithFirstRowColumns(String, String, List)public static String deleteById(Map params)
params - 方法参数RowMapper.deleteById(String, String, String, Object)public static String deleteBatchByIds(Map params)
params - 方法参数RowMapper.deleteBatchByIds(String, String, String, Collection)public static String deleteByQuery(Map params)
params - 方法参数RowMapper.deleteByQuery(String, String, QueryWrapper)public static String updateById(Map params)
params - 方法参数RowMapper.updateById(String, String, Row)public static String updateByQuery(Map params)
params - 方法参数RowMapper.updateByQuery(String, String, Row, QueryWrapper)public static String updateBatchById(Map params)
params - 方法参数RowMapper.updateBatchById(String, String, List)public static String updateEntity(Map params)
params - 方法参数RowMapper.updateEntity(Object entities)public static String selectOneById(Map params)
params - 方法参数RowMapper.selectOneById(String, String, String, Object)public static String selectListByQuery(Map params)
params - 方法参数RowMapper.selectListByQuery(String, String, QueryWrapper)Copyright © 2024. All rights reserved.