Package | Description |
---|---|
org.axonframework.common.jdbc |
Modifier and Type | Method and Description |
---|---|
static <R> JdbcUtils.SqlResultConverter<List<R>> |
JdbcUtils.listResults(JdbcUtils.SqlResultConverter<R> singleResultConverter)
Create a converter that produces a List of results of type
R from a converter that produces a single
result. |
Modifier and Type | Method and Description |
---|---|
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 <R> JdbcUtils.SqlResultConverter<List<R>> |
JdbcUtils.listResults(JdbcUtils.SqlResultConverter<R> singleResultConverter)
Create a converter that produces a List of results of type
R from a converter that produces a single
result. |
Constructor and Description |
---|
PagingJdbcIterable(TransactionManager transactionManager,
Supplier<Connection> connectionProvider,
PagingJdbcIterable.PagingStatementSupplier pagingQuerySupplier,
int pageSize,
JdbcUtils.SqlResultConverter<R> resultConverter,
Function<SQLException,RuntimeException> errorHandler)
Construct a new
Iterable of type R , utilizing paging queries to retrieve the entries. |
Copyright © 2010–2024. All rights reserved.