org.apache.camel.component.ibatis.strategy
Class DefaultIBatisProcessingStategy
java.lang.Object
org.apache.camel.component.ibatis.strategy.DefaultIBatisProcessingStategy
- All Implemented Interfaces:
- IBatisProcessingStrategy
public class DefaultIBatisProcessingStategy
- extends Object
- implements IBatisProcessingStrategy
Default strategy for consuming messages for a route
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultIBatisProcessingStategy
public DefaultIBatisProcessingStategy()
commit
public void commit(IBatisEndpoint endpoint,
Exchange exchange,
Object data,
String consumeStatements)
throws Exception
- Description copied from interface:
IBatisProcessingStrategy
- Commit callback if there are a statements to be run after processing.
- Specified by:
commit in interface IBatisProcessingStrategy
- Parameters:
endpoint - The Ibatis Enpointexchange - 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(IBatisPollingConsumer consumer,
IBatisEndpoint endpoint)
throws Exception
- Description copied from interface:
IBatisProcessingStrategy
- Called when record is being queried.
- Specified by:
poll in interface IBatisProcessingStrategy
- Parameters:
consumer - The Ibatis Polling Consumerendpoint - The Ibatis Endpoint
- Returns:
- Results of the query as a java.util.List
- Throws:
Exception - can be thrown in case of error
Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.