org.apache.camel.component.ibatis
Class IBatisEndpoint

java.lang.Object
  extended by org.apache.camel.impl.DefaultEndpoint
      extended by org.apache.camel.impl.ScheduledPollEndpoint
          extended by org.apache.camel.impl.DefaultPollingEndpoint
              extended by org.apache.camel.component.ibatis.IBatisEndpoint
All Implemented Interfaces:
CamelContextAware, Endpoint, IsSingleton

public class IBatisEndpoint
extends DefaultPollingEndpoint

An

Constructor Summary
IBatisEndpoint()
           
IBatisEndpoint(String uri, IBatisComponent component, String statement)
           
 
Method Summary
 IBatisPollingConsumer createConsumer(Processor processor)
           
 Producer createProducer()
           
 IBatisComponent getComponent()
           
 int getMaxMessagesPerPoll()
           
 IBatisProcessingStrategy getProcessingStrategy()
          Gets the IbatisProcessingStrategy to to use when consuming messages from the database
 com.ibatis.sqlmap.client.SqlMapClient getSqlMapClient()
          Gets the iBatis SqlMapClient
 String getStatement()
          Statement to run when polling or processing
 StatementType getStatementType()
           
 boolean isSingleton()
           
 boolean isUseTransactions()
          Indicates if transactions should be used when calling statements.
 void setMaxMessagesPerPoll(int maxMessagesPerPoll)
           
 void setStatement(String statement)
          Statement to run when polling or processing
 void setStatementType(StatementType statementType)
           
 void setStrategy(IBatisProcessingStrategy strategy)
           
 void setUseTransactions(boolean useTransactions)
          Sets indicator to use transactions for consuming and error handling statements.
 
Methods inherited from class org.apache.camel.impl.ScheduledPollEndpoint
configureConsumer, configureProperties, getConsumerProperties, setConsumerProperties
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, hashCode, isLenientProperties, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IBatisEndpoint

public IBatisEndpoint()

IBatisEndpoint

public IBatisEndpoint(String uri,
                      IBatisComponent component,
                      String statement)
               throws Exception
Throws:
Exception
Method Detail

getComponent

public IBatisComponent getComponent()
Overrides:
getComponent in class DefaultEndpoint

isSingleton

public boolean isSingleton()

createProducer

public Producer createProducer()
                        throws Exception
Throws:
Exception

createConsumer

public IBatisPollingConsumer createConsumer(Processor processor)
                                     throws Exception
Specified by:
createConsumer in interface Endpoint
Overrides:
createConsumer in class DefaultPollingEndpoint
Throws:
Exception

getSqlMapClient

public com.ibatis.sqlmap.client.SqlMapClient getSqlMapClient()
                                                      throws IOException
Gets the iBatis SqlMapClient

Throws:
IOException

getProcessingStrategy

public IBatisProcessingStrategy getProcessingStrategy()
                                               throws Exception
Gets the IbatisProcessingStrategy to to use when consuming messages from the database

Throws:
Exception

setStrategy

public void setStrategy(IBatisProcessingStrategy strategy)

getStatement

public String getStatement()
Statement to run when polling or processing


setStatement

public void setStatement(String statement)
Statement to run when polling or processing


isUseTransactions

public boolean isUseTransactions()
Indicates if transactions should be used when calling statements. Useful if using a comma separated list when consuming records.


setUseTransactions

public void setUseTransactions(boolean useTransactions)
Sets indicator to use transactions for consuming and error handling statements.


getStatementType

public StatementType getStatementType()

setStatementType

public void setStatementType(StatementType statementType)

getMaxMessagesPerPoll

public int getMaxMessagesPerPoll()

setMaxMessagesPerPoll

public void setMaxMessagesPerPoll(int maxMessagesPerPoll)


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