org.apache.camel.component.ibatis
Class IBatisEndpoint

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      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:
org.apache.camel.CamelContextAware, org.apache.camel.Endpoint, org.apache.camel.IsSingleton, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.HasId

public class IBatisEndpoint
extends org.apache.camel.impl.DefaultPollingEndpoint

An

Constructor Summary
IBatisEndpoint()
           
IBatisEndpoint(String uri, IBatisComponent component, String statement)
           
 
Method Summary
 IBatisPollingConsumer createConsumer(org.apache.camel.Processor processor)
           
 org.apache.camel.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, doStart, doStop, equals, getCamelContext, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getId, hashCode, isLenientProperties, isSynchronous, sanitizeUri, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, toString
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

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 org.apache.camel.impl.DefaultEndpoint

isSingleton

public boolean isSingleton()

createProducer

public org.apache.camel.Producer createProducer()
                                         throws Exception
Throws:
Exception

createConsumer

public IBatisPollingConsumer createConsumer(org.apache.camel.Processor processor)
                                     throws Exception
Specified by:
createConsumer in interface org.apache.camel.Endpoint
Overrides:
createConsumer in class org.apache.camel.impl.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)


Apache CAMEL