Uses of Interface
org.springframework.jdbc.core.simple.JdbcClient
Package
Description
Simplification layer for common JDBC interactions.
Support classes for tests based on JDBC.
-
Uses of JdbcClient in org.springframework.jdbc.core.simple
Modifier and TypeMethodDescriptionstatic JdbcClient
JdbcClient.create
(DataSource dataSource) Create aJdbcClient
for the givenDataSource
.static JdbcClient
JdbcClient.create
(JdbcOperations jdbcTemplate) static JdbcClient
JdbcClient.create
(NamedParameterJdbcOperations jdbcTemplate) Create aJdbcClient
for the givenNamedParameterJdbcOperations
delegate, typically anNamedParameterJdbcTemplate
. -
Uses of JdbcClient in org.springframework.test.jdbc
Modifier and TypeMethodDescriptionstatic int
JdbcTestUtils.countRowsInTable
(JdbcClient jdbcClient, String tableName) Count the rows in the given table.static int
JdbcTestUtils.countRowsInTableWhere
(JdbcClient jdbcClient, String tableName, String whereClause) Count the rows in the given table, using the providedWHERE
clause.static int
JdbcTestUtils.deleteFromTables
(JdbcClient jdbcClient, String... tableNames) Delete all rows from the specified tables.static int
JdbcTestUtils.deleteFromTableWhere
(JdbcClient jdbcClient, String tableName, String whereClause, Object... args) Delete rows from the given table, using the providedWHERE
clause.static void
JdbcTestUtils.dropTables
(JdbcClient jdbcClient, String... tableNames) Drop the specified tables.