org.apache.camel.component.ibatis
Class IBatisComponent

java.lang.Object
  extended by org.apache.camel.support.ServiceSupport
      extended by org.apache.camel.impl.DefaultComponent
          extended by org.apache.camel.component.ibatis.IBatisComponent
All Implemented Interfaces:
org.apache.camel.CamelContextAware, org.apache.camel.Component, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.StatefulService, org.apache.camel.SuspendableService

public class IBatisComponent
extends org.apache.camel.impl.DefaultComponent

An IBatisConsumer Using Ibatis as a destination for data (<to>) you can use this component to run an insert statement either on a single message or if the delivered content contains a collection of messages it can iterate through the collection and run the insert on each element. Details are available in the IBatisProducer

See Also:
IBatisProducer, IBatisConsumer

Field Summary
 
Fields inherited from class org.apache.camel.support.ServiceSupport
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
 
Constructor Summary
IBatisComponent()
           
IBatisComponent(com.ibatis.sqlmap.client.SqlMapClient sqlMapClient)
           
 
Method Summary
protected  IBatisEndpoint createEndpoint(String uri, String remaining, Map<String,Object> parameters)
           
protected  com.ibatis.sqlmap.client.SqlMapClient createSqlMapClient()
           
protected  void doStart()
           
protected  void doStop()
           
 com.ibatis.sqlmap.client.SqlMapClient getSqlMapClient()
           
 String getSqlMapConfig()
           
 boolean isUseTransactions()
           
 void setSqlMapClient(com.ibatis.sqlmap.client.SqlMapClient sqlMapClient)
           
 void setSqlMapConfig(String sqlMapConfig)
           
 void setUseTransactions(boolean useTransactions)
           
 
Methods inherited from class org.apache.camel.impl.DefaultComponent
afterConfiguration, createComponentConfiguration, createConfiguration, createEndpoint, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, ifStartsWithReturnRemainder, preProcessUri, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setCamelContext, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURI
 
Methods inherited from class org.apache.camel.support.ServiceSupport
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IBatisComponent

public IBatisComponent()

IBatisComponent

public IBatisComponent(com.ibatis.sqlmap.client.SqlMapClient sqlMapClient)
Method Detail

createEndpoint

protected IBatisEndpoint createEndpoint(String uri,
                                        String remaining,
                                        Map<String,Object> parameters)
                                 throws Exception
Specified by:
createEndpoint in class org.apache.camel.impl.DefaultComponent
Throws:
Exception

createSqlMapClient

protected com.ibatis.sqlmap.client.SqlMapClient createSqlMapClient()
                                                            throws IOException
Throws:
IOException

getSqlMapClient

public com.ibatis.sqlmap.client.SqlMapClient getSqlMapClient()

setSqlMapClient

public void setSqlMapClient(com.ibatis.sqlmap.client.SqlMapClient sqlMapClient)

getSqlMapConfig

public String getSqlMapConfig()

setSqlMapConfig

public void setSqlMapConfig(String sqlMapConfig)

isUseTransactions

public boolean isUseTransactions()

setUseTransactions

public void setUseTransactions(boolean useTransactions)

doStart

protected void doStart()
                throws Exception
Overrides:
doStart in class org.apache.camel.impl.DefaultComponent
Throws:
Exception

doStop

protected void doStop()
               throws Exception
Overrides:
doStop in class org.apache.camel.impl.DefaultComponent
Throws:
Exception


Apache Camel