org.apache.camel.component.ibatis.strategy
Interface IBatisProcessingStrategy

All Known Implementing Classes:
DefaultIBatisProcessingStategy

public interface IBatisProcessingStrategy

Processing strategy for dealing with IBatis.


Method Summary
 void commit(IBatisEndpoint endpoint, Exchange exchange, Object data, String consumeStatements)
          Commit callback if there are a statements to be run after processing.
 List poll(IBatisPollingConsumer consumer, IBatisEndpoint endpoint)
          Called when record is being queried.
 

Method Detail

poll

List poll(IBatisPollingConsumer consumer,
          IBatisEndpoint endpoint)
          throws Exception
Called when record is being queried.

Parameters:
consumer - The Ibatis Polling Consumer
endpoint - The Ibatis Endpoint
Returns:
Results of the query as a java.util.List
Throws:
Exception - can be thrown in case of error

commit

void commit(IBatisEndpoint endpoint,
            Exchange exchange,
            Object data,
            String consumeStatements)
            throws Exception
Commit callback if there are a statements to be run after processing.

Parameters:
endpoint - The Ibatis Enpoint
exchange - The exchange after it has been processed
data - The original data delivered to the route
consumeStatements - 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


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.