public interface DQLBuilder
| 限定符和类型 | 方法和说明 |
|---|---|
ConnectionExecutorItem |
count(Query query)
获取符合条件的总数目
|
ConnectionExecutorItem |
delete(Query query)
删除符合条件的数据库记录
|
ConnectionExecutorItem |
fetch(Class clazz,
long id)
根据id查询
|
ConnectionExecutorItem |
fetch(Class clazz,
String field,
Object value)
根据字段值查询
|
ConnectionExecutorItem |
fetch(String tableName,
String field,
Object value)
根据字段值查询
|
ConnectionExecutorItem |
fetchNull(Class clazz,
String field)
is null查询
|
ConnectionExecutorItem |
fetchNull(String tableName,
String field)
is null查询
|
ConnectionExecutorItem |
getArray(Query query)
返回符合条件的数据库记录
|
StringBuilder |
getArraySQL(Query query)
获取query对应的SQL语句
|
int |
getResultSetRowCount(Query query)
获取结果集行数
|
ConnectionExecutorItem |
insert(Query query)
插入记录
|
ConnectionExecutorItem[] |
insertArray(Query query)
批量插入记录
|
ConnectionExecutorItem |
insertArrayBatch(Query query)
批量插入记录
|
ConnectionExecutorItem |
insertArrayBatch(Query query,
int offset,
int length)
批量插入记录
|
ConnectionExecutorItem |
update(Query query)
更新符合条件的记录
|
ConnectionExecutorItem fetchNull(Class clazz, String field) throws SQLException
clazz - 实体类field - 字段名称SQLExceptionConnectionExecutorItem fetch(Class clazz, long id) throws SQLException
clazz - 实体类id - 实体类id值SQLExceptionConnectionExecutorItem fetch(Class clazz, String field, Object value) throws SQLException
clazz - 实体类field - 字段名称value - 字段值SQLExceptionConnectionExecutorItem fetchNull(String tableName, String field) throws SQLException
tableName - 表名field - 字段名称SQLExceptionConnectionExecutorItem fetch(String tableName, String field, Object value) throws SQLException
tableName - 表名field - 字段名称value - 字段值SQLExceptionint getResultSetRowCount(Query query) throws SQLException
query - 查询条件SQLExceptionConnectionExecutorItem count(Query query) throws SQLException
query - 查询条件SQLExceptionConnectionExecutorItem insert(Query query) throws SQLException
query - 查询条件SQLExceptionConnectionExecutorItem[] insertArray(Query query) throws SQLException
query - 查询条件SQLExceptionConnectionExecutorItem insertArrayBatch(Query query) throws SQLException
query - 查询条件SQLExceptionConnectionExecutorItem insertArrayBatch(Query query, int offset, int length) throws SQLException
query - 查询条件offset - 偏移量length - 长度SQLExceptionConnectionExecutorItem update(Query query) throws SQLException
query - 查询条件SQLExceptionConnectionExecutorItem delete(Query query) throws SQLException
query - 查询条件SQLExceptionConnectionExecutorItem getArray(Query query) throws SQLException
query - 查询条件SQLExceptionStringBuilder getArraySQL(Query query)
query - 查询条件Copyright © 2021. All rights reserved.