public class AbstractDMLBuilder extends AbstractSQLBuilder implements DMLBuilder
connection, logger, PLACEHOLDER, quickDAOConfig| 构造器和说明 |
|---|
AbstractDMLBuilder(QuickDAOConfig quickDAOConfig) |
| 限定符和类型 | 方法和说明 |
|---|---|
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)
根据唯一性约束更新
|
getFieldFromInstance, replaceFirst, selectCountById, selectCountByUniqueKey, setParameter, setParameter, setPrepareStatementParameterpublic AbstractDMLBuilder(QuickDAOConfig quickDAOConfig)
public PreparedStatement insert(Object instance) throws Exception
DMLBuilderinsert 在接口中 DMLBuilderExceptionpublic PreparedStatement[] insert(Object[] instances) throws Exception
DMLBuilderinsert 在接口中 DMLBuilderExceptionpublic PreparedStatement insertBatch(Object[] instances) throws Exception
DMLBuilderinsertBatch 在接口中 DMLBuilderExceptionpublic PreparedStatement updateByUniqueKey(Object instance) throws Exception
DMLBuilderupdateByUniqueKey 在接口中 DMLBuilderExceptionpublic PreparedStatement updateByUniqueKey(Object[] instances) throws Exception
DMLBuilderupdateByUniqueKey 在接口中 DMLBuilderExceptionpublic PreparedStatement updateById(Object instance) throws Exception
DMLBuilderupdateById 在接口中 DMLBuilderExceptionpublic PreparedStatement updateById(Object[] instances) throws Exception
DMLBuilderupdateById 在接口中 DMLBuilderExceptionpublic PreparedStatement deleteByProperty(Class clazz, String property, Object value) throws SQLException
DMLBuilderdeleteByProperty 在接口中 DMLBuilderSQLExceptionpublic PreparedStatement deleteByProperty(String tableName, String property, Object value) throws SQLException
DMLBuilderdeleteByProperty 在接口中 DMLBuilderSQLExceptionpublic PreparedStatement clear(Class clazz) throws SQLException
DMLBuilderclear 在接口中 DMLBuilderSQLExceptionCopyright © 2021. All rights reserved.