Class DefaultMyBatisProcessingStrategy
- java.lang.Object
-
- org.apache.camel.component.mybatis.DefaultMyBatisProcessingStrategy
-
- All Implemented Interfaces:
MyBatisProcessingStrategy
public class DefaultMyBatisProcessingStrategy extends Object implements MyBatisProcessingStrategy
-
-
Constructor Summary
Constructors Constructor Description DefaultMyBatisProcessingStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommit(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
-
commit
public void commit(MyBatisEndpoint endpoint, org.apache.camel.Exchange exchange, Object data, String consumeStatements) throws Exception
Description copied from interface:MyBatisProcessingStrategyCommit callback if there are a statements to be run after processing.- Specified by:
commitin interfaceMyBatisProcessingStrategy- Parameters:
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.- Throws:
Exception- can be thrown in case of error
-
poll
public List<?> poll(MyBatisConsumer consumer, MyBatisEndpoint endpoint) throws Exception
Description copied from interface:MyBatisProcessingStrategyCalled when record is being queried.- Specified by:
pollin interfaceMyBatisProcessingStrategy- Parameters:
consumer- the consumerendpoint- the endpoint- Returns:
- Results of the query as a
List - Throws:
Exception- can be thrown in case of error
-
-