public interface SqlExecutor
| 限定符和类型 | 方法和说明 |
|---|---|
Row |
queryRow()
查询并获取行
|
RowIterator |
queryRowIterator(int fetchSize)
查询并获取行遍历器(流式读取)
|
RowList |
queryRowList()
查询并获取行列表
|
<T> T |
queryValue()
查询并获取值
|
<T> List<T> |
queryValueList()
查询并获取值列表
|
int |
update()
更新(插入、或更新、或删除)
|
int[] |
updateBatch(Collection<Object[]> argsList)
批量更新(插入、或更新、或删除)
|
<T> T |
updateReturnKey()
更新并返回主键
|
@Nullable
<T> T queryValue()
throws SQLException
SQLException@Nullable <T> List<T> queryValueList() throws SQLException
SQLException@Nullable Row queryRow() throws SQLException
SQLException@Nullable RowList queryRowList() throws SQLException
SQLExceptionRowIterator queryRowIterator(int fetchSize) throws SQLException
SQLExceptionint update()
throws SQLException
SQLExceptionint[] updateBatch(Collection<Object[]> argsList) throws SQLException
SQLException@Nullable
<T> T updateReturnKey()
throws SQLException
SQLExceptionCopyright © 2024. All rights reserved.