public class DefaultSqlProcessingStrategy extends java.lang.Object implements SqlProcessingStrategy
| Constructor and Description |
|---|
DefaultSqlProcessingStrategy(SqlPrepareStatementStrategy sqlPrepareStatementStrategy) |
| Modifier and Type | Method and Description |
|---|---|
int |
commit(SqlEndpoint endpoint,
Exchange exchange,
java.lang.Object data,
org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
java.lang.String query)
Commit callback if there are a query to be run after processing.
|
int |
commitBatchComplete(SqlEndpoint endpoint,
org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
java.lang.String query)
Commit callback when the batch is complete.
|
public DefaultSqlProcessingStrategy(SqlPrepareStatementStrategy sqlPrepareStatementStrategy)
public int commit(SqlEndpoint endpoint, Exchange exchange, java.lang.Object data, org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, java.lang.String query) throws java.lang.Exception
SqlProcessingStrategycommit in interface SqlProcessingStrategyendpoint - the endpointexchange - The exchange after it has been processeddata - The original data delivered to the routejdbcTemplate - The JDBC templatequery - The SQL query to executejava.lang.Exception - can be thrown in case of errorpublic int commitBatchComplete(SqlEndpoint endpoint, org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, java.lang.String query) throws java.lang.Exception
SqlProcessingStrategycommitBatchComplete in interface SqlProcessingStrategyendpoint - the endpointjdbcTemplate - The JDBC templatequery - The SQL query to executejava.lang.Exception - can be thrown in case of errorCopyright © 2007-2014 Red Hat, Inc.. All Rights Reserved.