public interface SqlNamedProcessingStrategy extends SqlProcessingStrategy
NamedParameterJdbcTemplate
instead of plain JdbcTemplate.| Modifier and Type | Method and Description |
|---|---|
int |
commit(DefaultSqlEndpoint endpoint,
org.apache.camel.Exchange exchange,
Object data,
org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate namedJdbcTemplate,
org.springframework.jdbc.core.namedparam.SqlParameterSource parameterSource,
String query)
Commit callback if there are a query to be run after processing.
|
int |
commitBatchComplete(DefaultSqlEndpoint endpoint,
org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate namedJdbcTemplate,
org.springframework.jdbc.core.namedparam.SqlParameterSource parameterSource,
String query)
Commit callback when the batch is complete.
|
commit, commitBatchCompleteint commit(DefaultSqlEndpoint endpoint, org.apache.camel.Exchange exchange, Object data, org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate namedJdbcTemplate, org.springframework.jdbc.core.namedparam.SqlParameterSource parameterSource, String query) throws Exception
endpoint - the endpointexchange - The exchange after it has been processeddata - The original data delivered to the routenamedJdbcTemplate - The JDBC templateparameterSource - Parameter sources for the named JDBC templatequery - The SQL query to executeException - can be thrown in case of errorint commitBatchComplete(DefaultSqlEndpoint endpoint, org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate namedJdbcTemplate, org.springframework.jdbc.core.namedparam.SqlParameterSource parameterSource, String query) throws Exception
endpoint - the endpointnamedJdbcTemplate - The JDBC templateparameterSource - Parameter sources for the named JDBC templatequery - The SQL query to executeException - can be thrown in case of errorApache Camel