Package | Description |
---|---|
org.axonframework.common.jdbc |
Modifier and Type | Method and Description |
---|---|
static int[] |
JdbcUtils.executeBatch(Connection connection,
JdbcUtils.SqlFunction sqlFunction,
Consumer<SQLException> errorHandler)
Execute the a batch update or insert statement produced by the given
sqlFunction . |
static <R> R |
JdbcUtils.executeQuery(Connection connection,
JdbcUtils.SqlFunction sqlFunction,
JdbcUtils.SqlResultConverter<R> sqlResultConverter,
Function<SQLException,RuntimeException> errorHandler)
Execute the query given by the
sqlFunction . |
static <R> R |
JdbcUtils.executeQuery(Connection connection,
JdbcUtils.SqlFunction sqlFunction,
JdbcUtils.SqlResultConverter<R> sqlResultConverter,
Function<SQLException,RuntimeException> errorHandler,
boolean closeConnection)
Execute the query given by the
sqlFunction . |
static int |
JdbcUtils.executeUpdate(Connection connection,
JdbcUtils.SqlFunction updateFunction,
Function<SQLException,RuntimeException> errorHandler)
Execute the update statement produced by the given
updateFunction . |
static int[] |
JdbcUtils.executeUpdates(Connection connection,
Consumer<SQLException> errorHandler,
JdbcUtils.SqlFunction... sqlFunctions)
Execute the update statements produced by the given
sqlFunctions . |
Copyright © 2010–2024. All rights reserved.