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 JdbcOutboundGatewaySpecoutboundGateway(DataSource dataSource, String updateQuery) The factory to produce aJdbcOutboundGatewaySpec.static JdbcOutboundGatewaySpecoutboundGateway(DataSource dataSource, String updateQuery, String selectQuery) The factory to produce aJdbcOutboundGatewaySpec.static JdbcOutboundGatewaySpecoutboundGateway(JdbcOperations jdbcOperations, String updateQuery) The factory to produce aJdbcOutboundGatewaySpec.static JdbcOutboundGatewaySpecoutboundGateway(JdbcOperations jdbcOperations, String updateQuery, @Nullable String selectQuery) The factory to produce aJdbcOutboundGatewaySpec.static StoredProcExecutorSpecstoredProcExecutorSpec(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- theDataSourceto build onselectQuery- the select query to build on- Returns:
- the
JdbcInboundChannelAdapterSpecinstance
-
inboundAdapter
public static JdbcInboundChannelAdapterSpec inboundAdapter(JdbcOperations jdbcOperations, String selectQuery) The factory to produce aJdbcInboundChannelAdapterSpec.- Parameters:
jdbcOperations- theJdbcOperationsto build onselectQuery- the select query to build on- Returns:
- the
JdbcInboundChannelAdapterSpecinstance
-
outboundAdapter
public static JdbcOutboundChannelAdapterSpec outboundAdapter(DataSource dataSource, String updateQuery) The factory to produce aJdbcOutboundChannelAdapterSpec.- Parameters:
dataSource- theDataSourceto build onupdateQuery- the update query to build on- Returns:
- the
JdbcOutboundChannelAdapterSpecinstance
-
outboundAdapter
public static JdbcOutboundChannelAdapterSpec outboundAdapter(JdbcOperations jdbcOperations, String updateQuery) The factory to produce aJdbcOutboundChannelAdapterSpec.- Parameters:
jdbcOperations- theJdbcOperationsto build onupdateQuery- the update query to build on- Returns:
- the
JdbcOutboundChannelAdapterSpecinstance
-
outboundGateway
The factory to produce aJdbcOutboundGatewaySpec.- Parameters:
dataSource- theDataSourceto build onupdateQuery- the update query to build on- Returns:
- the
JdbcOutboundGatewaySpecinstance
-
outboundGateway
public static JdbcOutboundGatewaySpec outboundGateway(DataSource dataSource, String updateQuery, String selectQuery) The factory to produce aJdbcOutboundGatewaySpec.- Parameters:
dataSource- theDataSourceto build onupdateQuery- the update query to build onselectQuery- the select query to build on- Returns:
- the
JdbcOutboundGatewaySpecinstance
-
outboundGateway
public static JdbcOutboundGatewaySpec outboundGateway(JdbcOperations jdbcOperations, String updateQuery) The factory to produce aJdbcOutboundGatewaySpec.- Parameters:
jdbcOperations- theJdbcOperationsto build onupdateQuery- the update query to build on- Returns:
- the
JdbcOutboundGatewaySpecinstance
-
outboundGateway
public static JdbcOutboundGatewaySpec outboundGateway(JdbcOperations jdbcOperations, String updateQuery, @Nullable String selectQuery) The factory to produce aJdbcOutboundGatewaySpec.- Parameters:
jdbcOperations- theJdbcOperationsto build onupdateQuery- the update query to build onselectQuery- the select query to build on- Returns:
- the
JdbcOutboundGatewaySpecinstance
-
storedProcInboundAdapter
public static JdbcStoredProcInboundChannelAdapterSpec storedProcInboundAdapter(DataSource dataSource) The factory to produce aJdbcStoredProcInboundChannelAdapterSpec.- Parameters:
dataSource- theDataSourceto build on- Returns:
- the
JdbcStoredProcInboundChannelAdapterSpecinstance
-
storedProcInboundAdapter
public static JdbcStoredProcInboundChannelAdapterSpec storedProcInboundAdapter(StoredProcExecutor storedProcExecutor) The factory to produce aJdbcStoredProcInboundChannelAdapterSpec.- Parameters:
storedProcExecutor- theStoredProcExecutorto use- Returns:
- the
JdbcStoredProcInboundChannelAdapterSpecinstance
-
storedProcOutboundAdapter
public static JdbcStoredProcOutboundChannelAdapterSpec storedProcOutboundAdapter(DataSource dataSource) The factory to produce aJdbcStoredProcOutboundChannelAdapterSpec.- Parameters:
dataSource- theDataSourceto build on- Returns:
- the
JdbcStoredProcOutboundChannelAdapterSpecinstance
-
storedProcOutboundAdapter
public static JdbcStoredProcOutboundChannelAdapterSpec storedProcOutboundAdapter(StoredProcExecutor storedProcExecutor) The factory to produce aJdbcStoredProcOutboundChannelAdapterSpec.- Parameters:
storedProcExecutor- theStoredProcExecutorto use- Returns:
- the
JdbcStoredProcOutboundChannelAdapterSpecinstance
-
storedProcOutboundGateway
The factory to produce aJdbcStoredProcOutboundGatewaySpec.- Parameters:
dataSource- theDataSourceto build on- Returns:
- the
JdbcStoredProcOutboundGatewaySpecinstance
-
storedProcOutboundGateway
public static JdbcStoredProcOutboundGatewaySpec storedProcOutboundGateway(StoredProcExecutor storedProcExecutor) The factory to produce aJdbcStoredProcOutboundGatewaySpec.- Parameters:
storedProcExecutor- theStoredProcExecutorto use- Returns:
- the
JdbcStoredProcOutboundGatewaySpecinstance
-
storedProcExecutorSpec
The factory to produce aStoredProcExecutorSpec.- Parameters:
dataSource- theDataSourceto build on- Returns:
- the
StoredProcExecutorSpecinstance
-