public interface DQLBuilder
| 限定符和类型 | 方法和说明 |
|---|---|
PreparedStatement |
count(Query query)
获取符合条件的总数目
|
PreparedStatement |
delete(Query query)
删除符合条件的数据库记录
|
PreparedStatement |
fetch(Class clazz,
long id)
根据id查询
|
PreparedStatement |
fetch(Class clazz,
String field,
Object value)
根据字段值查询
|
PreparedStatement |
fetch(String tableName,
String field,
Object value)
根据字段值查询
|
PreparedStatement |
fetchNull(Class clazz,
String field)
is null查询
|
PreparedStatement |
fetchNull(String tableName,
String field)
is null查询
|
PreparedStatement |
getArray(Query query)
返回符合条件的数据库记录
|
StringBuilder |
getArraySQL(Query query)
获取query对应的SQL语句
|
int |
getResultSetRowCount(Query query)
获取结果集行数
|
PreparedStatement |
insert(Query query)
插入记录
|
PreparedStatement[] |
insertArray(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 fetchNull(String tableName, String field) throws SQLException
SQLExceptionPreparedStatement fetch(String tableName, String field, Object value) throws SQLException
SQLExceptionint getResultSetRowCount(Query query) throws SQLException
SQLExceptionPreparedStatement count(Query query) throws SQLException
SQLExceptionPreparedStatement insert(Query query) throws SQLException
SQLExceptionPreparedStatement[] insertArray(Query query) throws SQLException
SQLExceptionPreparedStatement update(Query query) throws SQLException
SQLExceptionPreparedStatement delete(Query query) throws SQLException
SQLExceptionPreparedStatement getArray(Query query) throws SQLException
SQLExceptionStringBuilder getArraySQL(Query query)
Copyright © 2021. All rights reserved.