public class AbstractDMLSQLBuilder extends AbstractSQLBuilder implements DMLSQLBuilder
connection, logger, PLACEHOLDER, quickDAOConfig| 构造器和说明 |
|---|
AbstractDMLSQLBuilder(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)
根据唯一性约束更新
|
replaceFirst, selectCountById, selectCountByUniqueKey, setParameter, setParameterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDQLSQLBuilderInstancepublic AbstractDMLSQLBuilder(QuickDAOConfig quickDAOConfig)
public PreparedStatement insert(Object instance) throws Exception
DMLSQLBuilderinsert 在接口中 DMLSQLBuilderExceptionpublic PreparedStatement[] insert(Object[] instances) throws Exception
DMLSQLBuilderinsert 在接口中 DMLSQLBuilderExceptionpublic PreparedStatement insertBatch(Object[] instances) throws Exception
DMLSQLBuilderinsertBatch 在接口中 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 deleteByProperty(String tableName, String property, Object value) throws SQLException
DMLSQLBuilderdeleteByProperty 在接口中 DMLSQLBuilderSQLExceptionpublic PreparedStatement clear(Class clazz) throws SQLException
DMLSQLBuilderclear 在接口中 DMLSQLBuilderSQLExceptionCopyright © 2020. All rights reserved.