|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MyBatisProcessingStrategy
Processing strategy for dealing with MyBatis when consuming.
Method Summary | |
---|---|
void |
commit(MyBatisEndpoint endpoint,
org.apache.camel.Exchange exchange,
Object data,
String consumeStatements)
Commit callback if there are a statements to be run after processing. |
List<?> |
poll(MyBatisConsumer consumer,
MyBatisEndpoint endpoint)
Called when record is being queried. |
Method Detail |
---|
List<?> poll(MyBatisConsumer consumer, MyBatisEndpoint endpoint) throws Exception
consumer
- the consumerendpoint
- the endpoint
List
Exception
- can be thrown in case of errorvoid commit(MyBatisEndpoint endpoint, org.apache.camel.Exchange exchange, Object data, String consumeStatements) throws Exception
endpoint
- the endpointexchange
- The exchange after it has been processeddata
- The original data delivered to the routeconsumeStatements
- Name of the statement(s) to run, will use SQL update. Use comma to provide multiple statements to run.
Exception
- can be thrown in case of error
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |