public interface ConnectionExecutor extends TransactionOperation
| 限定符和类型 | 方法和说明 |
|---|---|
ConnectionExecutor |
batchParameters(List parameters)
指定参数
|
ConnectionExecutor |
clearBatch()
清空批处理
|
ConnectionExecutor |
closeBatch()
关闭批处理
|
boolean |
executeAndCheckExists()
执行查询语句,返回结果集是否存在
|
int |
executeBatch()
执行批处理
|
void |
executeQuery(ThrowingConsumer<ResultSet> resultSetConsumer)
执行查询语句
|
int |
executeUpdate()
执行更新语句
|
String |
getGeneratedKeys()
获取自增主键
|
ConnectionExecutor |
name(String name)
指定名称
|
ConnectionExecutor |
parameters(List parameters)
指定参数
|
ConnectionExecutor |
returnGeneratedKeys(boolean returnGeneratedKeys)
是否返回自增主键
|
ConnectionExecutor |
sql(String sql)
指定SQL语句
|
ConnectionExecutor |
startBatch()
使用批处理
|
ConnectionExecutor |
startTransaction()
开启事务
|
close, commit, rollback, rollback, setSavePoint, setTransactionIsolationConnectionExecutor name(String name)
name - 执行名称ConnectionExecutor sql(String sql)
sql - 语句ConnectionExecutor returnGeneratedKeys(boolean returnGeneratedKeys)
returnGeneratedKeys - 是否返回自增主键ConnectionExecutor parameters(List parameters)
parameters - 参数列表ConnectionExecutor batchParameters(List parameters)
parameters - 批处理参数列表ConnectionExecutor startTransaction()
boolean executeAndCheckExists()
void executeQuery(ThrowingConsumer<ResultSet> resultSetConsumer)
int executeUpdate()
ConnectionExecutor startBatch()
int executeBatch()
ConnectionExecutor clearBatch()
ConnectionExecutor closeBatch()
String getGeneratedKeys()
Copyright © 2023. All rights reserved.