|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SqlProcessingStrategy
Processing strategy for dealing with SQL when consuming.
Method Summary | |
---|---|
int |
commit(SqlEndpoint endpoint,
org.apache.camel.Exchange exchange,
Object data,
org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
String query)
Commit callback if there are a query to be run after processing. |
int |
commitBatchComplete(SqlEndpoint endpoint,
org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
String query)
Commit callback when the batch is complete. |
Method Detail |
---|
int commit(SqlEndpoint endpoint, org.apache.camel.Exchange exchange, Object data, org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, String query) throws Exception
endpoint
- the endpointexchange
- The exchange after it has been processeddata
- The original data delivered to the routejdbcTemplate
- The JDBC templatequery
- The SQL query to execute
Exception
- can be thrown in case of errorint commitBatchComplete(SqlEndpoint endpoint, org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, String query) throws Exception
endpoint
- the endpointjdbcTemplate
- The JDBC templatequery
- The SQL query to execute
Exception
- can be thrown in case of error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |