public interface DMLBuilder
| 限定符和类型 | 方法和说明 |
|---|---|
ConnectionExecutorItem |
clear(Class clazz)
清空表
|
ConnectionExecutorItem |
clear(String tableName)
清空表
|
ConnectionExecutorItem |
deleteByProperty(Class clazz,
String property,
Object value)
根据字段值删除
|
ConnectionExecutorItem |
deleteByProperty(String tableName,
String property,
Object value)
根据字段值删除
|
ConnectionExecutorItem |
insert(Object instance)
插入语句
|
ConnectionExecutorItem[] |
insert(Object[] instances)
批量插入语句(返回自增id)
|
int |
insertBatch(Object[] instances)
批量插入语句
|
ConnectionExecutorItem |
updateById(Object instance)
根据id更新
|
ConnectionExecutorItem |
updateById(Object[] instances)
根据id更新
|
ConnectionExecutorItem |
updateByUniqueKey(Object instance)
根据唯一性约束更新
|
ConnectionExecutorItem |
updateByUniqueKey(Object[] instances)
根据唯一性约束更新
|
ConnectionExecutorItem insert(Object instance) throws Exception
ExceptionConnectionExecutorItem[] insert(Object[] instances) throws Exception
ExceptionConnectionExecutorItem updateByUniqueKey(Object instance) throws Exception
ExceptionConnectionExecutorItem updateByUniqueKey(Object[] instances) throws Exception
ExceptionConnectionExecutorItem updateById(Object instance) throws Exception
ExceptionConnectionExecutorItem updateById(Object[] instances) throws Exception
ExceptionConnectionExecutorItem deleteByProperty(Class clazz, String property, Object value) throws SQLException
SQLExceptionConnectionExecutorItem deleteByProperty(String tableName, String property, Object value) throws SQLException
SQLExceptionConnectionExecutorItem clear(Class clazz) throws SQLException
SQLExceptionConnectionExecutorItem clear(String tableName) throws SQLException
SQLExceptionCopyright © 2021. All rights reserved.