public class DefaultIBatisProcessingStategy extends Object implements IBatisProcessingStrategy
| Constructor and Description |
|---|
DefaultIBatisProcessingStategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
commit(IBatisEndpoint endpoint,
org.apache.camel.Exchange exchange,
Object data,
String consumeStatements)
Commit callback if there are a statements to be run after processing.
|
int |
getIsolation()
Returns the transaction isolation level set on the processing strategy.
|
List<Object> |
poll(IBatisConsumer consumer,
IBatisEndpoint endpoint)
Called when record is being queried.
|
void |
setIsolation(int isolation)
Sets the transaction isolation level on the processing strategy.
|
public void commit(IBatisEndpoint endpoint, org.apache.camel.Exchange exchange, Object data, String consumeStatements) throws Exception
IBatisProcessingStrategycommit in interface IBatisProcessingStrategyendpoint - 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 errorpublic List<Object> poll(IBatisConsumer consumer, IBatisEndpoint endpoint) throws Exception
IBatisProcessingStrategypoll in interface IBatisProcessingStrategyconsumer - the consumerendpoint - the endpointListException - can be thrown in case of errorpublic int getIsolation()
IBatisProcessingStrategygetIsolation in interface IBatisProcessingStrategypublic void setIsolation(int isolation)
IBatisProcessingStrategysetIsolation in interface IBatisProcessingStrategyisolation - the transaction isolation level.Apache Camel