public interface ExtendSql extends HumpSql
| 限定符和类型 | 方法和说明 |
|---|---|
int |
deleteTableWhere(Class<?> entity,
String sql)
使用表映射实体类来编写好前部分删除,注意,sql语句执行时将被反驼峰
|
int |
deleteTableWhere(Class<?> entity,
String sql,
Object... param)
使用表映射实体类来编写好前部分删除,注意,sql语句执行时将被反驼峰
|
int |
updateTableSet(Class<?> entity,
String sql)
使用表映射实体类来编写好前部分更新,注意,sql语句执行时将被反驼峰
|
int |
updateTableSet(Class<?> entity,
String sql,
Object... param)
使用表映射实体类来编写好前部分更新,注意,sql语句执行时将被反驼峰
|
nativeHumpSelectForList, nativeHumpSelectForList, nativeHumpSelectForList, nativeHumpSelectMap, nativeHumpSelectMap, nativeHumpUpdate, nativeHumpUpdate, nativeHumpUpdateint updateTableSet(Class<?> entity, String sql)
entity - 表映射实体类sql - 需要更新的SQL,例如:"nickname='lingkang', createTime='2023-04-03'"
==> update {table} set nickname='lingkang', create_time='2023-04-03'int updateTableSet(Class<?> entity, String sql, Object... param)
entity - 表映射实体类sql - 需要更新的SQL,例如:"nickname='lingkang', createTime='2023-04-03'"
==> update {table} set nickname='lingkang', create_time='2023-04-03'param - sql条件中?对应的参数,注意顺序int deleteTableWhere(Class<?> entity, String sql)
entity - 表映射实体类sql - 需要删除的SQL条件,例如:"nickname='lingkang' and createTime='2023-04-03'"
==> delete from {table} where nickname='lingkang' and create_time='2023-04-03'int deleteTableWhere(Class<?> entity, String sql, Object... param)
entity - 表映射实体类sql - 需要删除的SQL条件,例如:"nickname='lingkang' and createTime='2023-04-03'"
==> delete from {table} where nickname='lingkang' and create_time='2023-04-03'param - sql条件中?对应的参数,注意顺序Copyright © 2023 lingkang. All rights reserved.