@Preview(value="3.0")
public interface SqlExecutor
| 限定符和类型 | 方法和说明 |
|---|---|
Row |
queryRow()
已过时。
3.0
|
<T> T |
queryRow(Class<T> tClass)
查询并获取行
|
<T> T |
queryRow(RowConverter<T> converter)
查询并获取行
|
<T> RowIterator<T> |
queryRowIterator(int fetchSize,
Class<T> tClass)
查询并获取行遍历器(流式读取)
|
<T> RowIterator<T> |
queryRowIterator(int fetchSize,
RowConverter<T> converter)
查询并获取行遍历器(流式读取)
|
RowList |
queryRowList()
已过时。
3.0
|
<T> List<T> |
queryRowList(Class<T> tClass)
查询并获取行列表
|
<T> List<T> |
queryRowList(RowConverter<T> converter)
查询并获取行列表
|
<T> T |
queryValue()
查询并获取值
|
<T> List<T> |
queryValueList()
查询并获取值列表
|
int |
update()
更新(插入、或更新、或删除)
|
<S> int |
update(S args,
StatementBinder<S> binder)
批量更新(插入、或更新、或删除)
|
int[] |
updateBatch(Collection<Object[]> argsList)
批量更新(插入、或更新、或删除)
|
<S> int[] |
updateBatch(Collection<S> argsList,
StatementBinder<S> binder)
批量更新(插入、或更新、或删除)
|
<T> T |
updateReturnKey()
更新并返回主键
|
<T,S> T |
updateReturnKey(S args,
StatementBinder<S> binder)
更新并返回主键
|
@Nullable
<T> T queryValue()
throws SQLException
SQLException@Nullable <T> List<T> queryValueList() throws SQLException
SQLException@Nullable <T> T queryRow(Class<T> tClass) throws SQLException
tClass - Map.class or T.classSQLException@Nullable <T> T queryRow(RowConverter<T> converter) throws SQLException
SQLException@Nullable <T> List<T> queryRowList(Class<T> tClass) throws SQLException
tClass - Map.class or T.classSQLException@Nullable <T> List<T> queryRowList(RowConverter<T> converter) throws SQLException
SQLException<T> RowIterator<T> queryRowIterator(int fetchSize, Class<T> tClass) throws SQLException
tClass - Map.class or T.classSQLException<T> RowIterator<T> queryRowIterator(int fetchSize, RowConverter<T> converter) throws SQLException
SQLExceptionint update()
throws SQLException
SQLException<S> int update(S args,
StatementBinder<S> binder)
throws SQLException
args - 参数binder - 绑定器SQLExceptionint[] updateBatch(Collection<Object[]> argsList) throws SQLException
argsList - 参数集合SQLException<S> int[] updateBatch(Collection<S> argsList, StatementBinder<S> binder) throws SQLException
argsList - 参数集合binder - 绑定器SQLException@Nullable
<T> T updateReturnKey()
throws SQLException
SQLException@Nullable
<T,S> T updateReturnKey(S args,
StatementBinder<S> binder)
throws SQLException
SQLException@Deprecated @Nullable Row queryRow() throws SQLException
SQLException@Deprecated @Nullable RowList queryRowList() throws SQLException
SQLExceptionCopyright © 2024. All rights reserved.