public class AbstractDMLSQLBuilder extends AbstractSQLBuilder implements DMLSQLBuilder
connection, logger, PLACEHOLDER, quickDAOConfig, sqlCache| 构造器和说明 |
|---|
AbstractDMLSQLBuilder(QuickDAOConfig quickDAOConfig) |
| 限定符和类型 | 方法和说明 |
|---|---|
PreparedStatement |
clear(Class clazz)
清空表
|
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)
根据唯一性约束更新
|
replaceFirst, selectByUniqueKey, setParameter, setParameterpublic AbstractDMLSQLBuilder(QuickDAOConfig quickDAOConfig)
public PreparedStatement insert(Object instance) throws Exception
DMLSQLBuilderinsert 在接口中 DMLSQLBuilderExceptionpublic PreparedStatement insert(Object[] instances) throws Exception
DMLSQLBuilderinsert 在接口中 DMLSQLBuilderExceptionpublic PreparedStatement updateByUniqueKey(Object instance) throws Exception
DMLSQLBuilderupdateByUniqueKey 在接口中 DMLSQLBuilderExceptionpublic PreparedStatement updateByUniqueKey(Object[] instances) throws Exception
DMLSQLBuilderupdateByUniqueKey 在接口中 DMLSQLBuilderExceptionpublic PreparedStatement updateById(Object instance) throws Exception
DMLSQLBuilderupdateById 在接口中 DMLSQLBuilderExceptionpublic PreparedStatement updateById(Object[] instances) throws Exception
DMLSQLBuilderupdateById 在接口中 DMLSQLBuilderExceptionpublic PreparedStatement deleteByProperty(Class clazz, String property, Object value) throws SQLException
DMLSQLBuilderdeleteByProperty 在接口中 DMLSQLBuilderSQLExceptionpublic PreparedStatement clear(Class clazz) throws SQLException
DMLSQLBuilderclear 在接口中 DMLSQLBuilderSQLExceptionCopyright © 2020. All rights reserved.