public interface DMLSQLBuilder
| 限定符和类型 | 方法和说明 |
|---|---|
PreparedStatement |
clear(Class clazz)
清空表
|
PreparedStatement |
deleteById(Class clazz,
long id)
根据id删除
|
PreparedStatement |
deleteByProperty(Class clazz,
String property,
Object value)
根据字段值删除
|
PreparedStatement |
insert(Object instance)
插入语句
|
PreparedStatement |
insert(Object[] instances)
根据id更新
|
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 updateByUniqueKey(Object instance) throws Exception
ExceptionPreparedStatement updateByUniqueKey(Object[] instances) throws Exception
ExceptionPreparedStatement updateById(Object instance) throws Exception
ExceptionPreparedStatement updateById(Object[] instances) throws Exception
ExceptionPreparedStatement deleteById(Class clazz, long id) throws SQLException
SQLExceptionPreparedStatement deleteByProperty(Class clazz, String property, Object value) throws SQLException
SQLExceptionPreparedStatement clear(Class clazz) throws SQLException
SQLExceptionCopyright © 2019. All rights reserved.