public interface DQLSQLBuilder
| 限定符和类型 | 方法和说明 |
|---|---|
PreparedStatement |
count(Query query)
获取符合条件的总数目
|
PreparedStatement |
delete(Query query)
删除符合条件的数据库记录
|
PreparedStatement |
fetch(Class clazz,
long id)
根据id查询
|
PreparedStatement |
fetch(Class clazz,
String field,
Object value)
根据字段值查询
|
PreparedStatement |
fetchNull(Class clazz,
String field)
is null查询
|
PreparedStatement |
getAggerateList(Query query)
返回聚合字段的数据库记录
|
PreparedStatement |
getArray(Query query)
返回符合条件的数据库记录
|
PreparedStatement |
getPartList(Query query)
返回指定字段的数据库记录
|
PreparedStatement |
getUnionList(Query query)
合并查询
|
PreparedStatement |
getValueList(String column,
Query query)
返回指定单个字段的集合
|
PreparedStatement |
update(Query query)
更新符合条件的记录
|
PreparedStatement fetchNull(Class clazz, String field) throws SQLException
SQLExceptionPreparedStatement fetch(Class clazz, long id) throws SQLException
SQLExceptionPreparedStatement fetch(Class clazz, String field, Object value) throws SQLException
SQLExceptionPreparedStatement count(Query query) throws SQLException
SQLExceptionPreparedStatement update(Query query) throws SQLException
SQLExceptionPreparedStatement delete(Query query) throws SQLException
SQLExceptionPreparedStatement getArray(Query query) throws SQLException
SQLExceptionPreparedStatement getAggerateList(Query query) throws SQLException
SQLExceptionPreparedStatement getValueList(String column, Query query) throws SQLException
SQLExceptionPreparedStatement getPartList(Query query) throws SQLException
SQLExceptionPreparedStatement getUnionList(Query query) throws SQLException
SQLExceptionCopyright © 2019. All rights reserved.