public class SimpleSqlExecutor extends Object implements SqlExecutor
| 构造器和说明 |
|---|
SimpleSqlExecutor(SimpleSqlUtils utils,
String sql,
Object[] args) |
| 限定符和类型 | 方法和说明 |
|---|---|
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()
更新并返回主键
|
public SimpleSqlExecutor(SimpleSqlUtils utils, String sql, Object[] args)
public <T> T queryValue()
throws SQLException
SqlExecutorqueryValue 在接口中 SqlExecutorSQLExceptionpublic <T> List<T> queryValueList() throws SQLException
SqlExecutorqueryValueList 在接口中 SqlExecutorSQLExceptionpublic Row queryRow() throws SQLException
SqlExecutorqueryRow 在接口中 SqlExecutorSQLExceptionpublic RowList queryRowList() throws SQLException
SqlExecutorqueryRowList 在接口中 SqlExecutorSQLExceptionpublic RowIterator queryRowIterator(int fetchSize) throws SQLException
SqlExecutorqueryRowIterator 在接口中 SqlExecutorSQLExceptionpublic int update()
throws SQLException
SqlExecutorupdate 在接口中 SqlExecutorSQLExceptionpublic int[] updateBatch(Collection<Object[]> argsList) throws SQLException
SqlExecutorupdateBatch 在接口中 SqlExecutorSQLExceptionpublic <T> T updateReturnKey()
throws SQLException
SqlExecutorupdateReturnKey 在接口中 SqlExecutorSQLExceptionCopyright © 2024. All rights reserved.