Class Jdbc
java.lang.Object
org.springframework.integration.jdbc.dsl.Jdbc
Factory class for JDBC components.
- Since:
- 7.0
- Author:
- Jiandong Ma, Artem Bilan
-
Method Summary
Modifier and TypeMethodDescriptioninboundAdapter
(DataSource dataSource, String selectQuery) The factory to produce aJdbcInboundChannelAdapterSpec
.inboundAdapter
(JdbcOperations jdbcOperations, String selectQuery) The factory to produce aJdbcInboundChannelAdapterSpec
.outboundAdapter
(DataSource dataSource, String updateQuery) The factory to produce aJdbcOutboundChannelAdapterSpec
.outboundAdapter
(JdbcOperations jdbcOperations, String updateQuery) The factory to produce aJdbcOutboundChannelAdapterSpec
.static JdbcOutboundGatewaySpec
outboundGateway
(DataSource dataSource, String updateQuery) The factory to produce aJdbcOutboundGatewaySpec
.static JdbcOutboundGatewaySpec
outboundGateway
(DataSource dataSource, String updateQuery, String selectQuery) The factory to produce aJdbcOutboundGatewaySpec
.static JdbcOutboundGatewaySpec
outboundGateway
(JdbcOperations jdbcOperations, String updateQuery) The factory to produce aJdbcOutboundGatewaySpec
.static JdbcOutboundGatewaySpec
outboundGateway
(JdbcOperations jdbcOperations, String updateQuery, @Nullable String selectQuery) The factory to produce aJdbcOutboundGatewaySpec
.static StoredProcExecutorSpec
storedProcExecutorSpec
(DataSource dataSource) The factory to produce aStoredProcExecutorSpec
.storedProcInboundAdapter
(DataSource dataSource) The factory to produce aJdbcStoredProcInboundChannelAdapterSpec
.storedProcInboundAdapter
(StoredProcExecutor storedProcExecutor) The factory to produce aJdbcStoredProcInboundChannelAdapterSpec
.storedProcOutboundAdapter
(DataSource dataSource) The factory to produce aJdbcStoredProcOutboundChannelAdapterSpec
.storedProcOutboundAdapter
(StoredProcExecutor storedProcExecutor) The factory to produce aJdbcStoredProcOutboundChannelAdapterSpec
.storedProcOutboundGateway
(DataSource dataSource) The factory to produce aJdbcStoredProcOutboundGatewaySpec
.storedProcOutboundGateway
(StoredProcExecutor storedProcExecutor) The factory to produce aJdbcStoredProcOutboundGatewaySpec
.
-
Method Details
-
inboundAdapter
public static JdbcInboundChannelAdapterSpec inboundAdapter(DataSource dataSource, String selectQuery) The factory to produce aJdbcInboundChannelAdapterSpec
.- Parameters:
dataSource
- theDataSource
to build onselectQuery
- the select query to build on- Returns:
- the
JdbcInboundChannelAdapterSpec
instance
-
inboundAdapter
public static JdbcInboundChannelAdapterSpec inboundAdapter(JdbcOperations jdbcOperations, String selectQuery) The factory to produce aJdbcInboundChannelAdapterSpec
.- Parameters:
jdbcOperations
- theJdbcOperations
to build onselectQuery
- the select query to build on- Returns:
- the
JdbcInboundChannelAdapterSpec
instance
-
outboundAdapter
public static JdbcOutboundChannelAdapterSpec outboundAdapter(DataSource dataSource, String updateQuery) The factory to produce aJdbcOutboundChannelAdapterSpec
.- Parameters:
dataSource
- theDataSource
to build onupdateQuery
- the update query to build on- Returns:
- the
JdbcOutboundChannelAdapterSpec
instance
-
outboundAdapter
public static JdbcOutboundChannelAdapterSpec outboundAdapter(JdbcOperations jdbcOperations, String updateQuery) The factory to produce aJdbcOutboundChannelAdapterSpec
.- Parameters:
jdbcOperations
- theJdbcOperations
to build onupdateQuery
- the update query to build on- Returns:
- the
JdbcOutboundChannelAdapterSpec
instance
-
outboundGateway
The factory to produce aJdbcOutboundGatewaySpec
.- Parameters:
dataSource
- theDataSource
to build onupdateQuery
- the update query to build on- Returns:
- the
JdbcOutboundGatewaySpec
instance
-
outboundGateway
public static JdbcOutboundGatewaySpec outboundGateway(DataSource dataSource, String updateQuery, String selectQuery) The factory to produce aJdbcOutboundGatewaySpec
.- Parameters:
dataSource
- theDataSource
to build onupdateQuery
- the update query to build onselectQuery
- the select query to build on- Returns:
- the
JdbcOutboundGatewaySpec
instance
-
outboundGateway
public static JdbcOutboundGatewaySpec outboundGateway(JdbcOperations jdbcOperations, String updateQuery) The factory to produce aJdbcOutboundGatewaySpec
.- Parameters:
jdbcOperations
- theJdbcOperations
to build onupdateQuery
- the update query to build on- Returns:
- the
JdbcOutboundGatewaySpec
instance
-
outboundGateway
public static JdbcOutboundGatewaySpec outboundGateway(JdbcOperations jdbcOperations, String updateQuery, @Nullable String selectQuery) The factory to produce aJdbcOutboundGatewaySpec
.- Parameters:
jdbcOperations
- theJdbcOperations
to build onupdateQuery
- the update query to build onselectQuery
- the select query to build on- Returns:
- the
JdbcOutboundGatewaySpec
instance
-
storedProcInboundAdapter
public static JdbcStoredProcInboundChannelAdapterSpec storedProcInboundAdapter(DataSource dataSource) The factory to produce aJdbcStoredProcInboundChannelAdapterSpec
.- Parameters:
dataSource
- theDataSource
to build on- Returns:
- the
JdbcStoredProcInboundChannelAdapterSpec
instance
-
storedProcInboundAdapter
public static JdbcStoredProcInboundChannelAdapterSpec storedProcInboundAdapter(StoredProcExecutor storedProcExecutor) The factory to produce aJdbcStoredProcInboundChannelAdapterSpec
.- Parameters:
storedProcExecutor
- theStoredProcExecutor
to use- Returns:
- the
JdbcStoredProcInboundChannelAdapterSpec
instance
-
storedProcOutboundAdapter
public static JdbcStoredProcOutboundChannelAdapterSpec storedProcOutboundAdapter(DataSource dataSource) The factory to produce aJdbcStoredProcOutboundChannelAdapterSpec
.- Parameters:
dataSource
- theDataSource
to build on- Returns:
- the
JdbcStoredProcOutboundChannelAdapterSpec
instance
-
storedProcOutboundAdapter
public static JdbcStoredProcOutboundChannelAdapterSpec storedProcOutboundAdapter(StoredProcExecutor storedProcExecutor) The factory to produce aJdbcStoredProcOutboundChannelAdapterSpec
.- Parameters:
storedProcExecutor
- theStoredProcExecutor
to use- Returns:
- the
JdbcStoredProcOutboundChannelAdapterSpec
instance
-
storedProcOutboundGateway
The factory to produce aJdbcStoredProcOutboundGatewaySpec
.- Parameters:
dataSource
- theDataSource
to build on- Returns:
- the
JdbcStoredProcOutboundGatewaySpec
instance
-
storedProcOutboundGateway
public static JdbcStoredProcOutboundGatewaySpec storedProcOutboundGateway(StoredProcExecutor storedProcExecutor) The factory to produce aJdbcStoredProcOutboundGatewaySpec
.- Parameters:
storedProcExecutor
- theStoredProcExecutor
to use- Returns:
- the
JdbcStoredProcOutboundGatewaySpec
instance
-
storedProcExecutorSpec
The factory to produce aStoredProcExecutorSpec
.- Parameters:
dataSource
- theDataSource
to build on- Returns:
- the
StoredProcExecutorSpec
instance
-