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