org.apache.camel.component.ibatis
Class IBatisComponent
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultComponent
org.apache.camel.component.ResourceBasedComponent
org.apache.camel.component.ibatis.IBatisComponent
- All Implemented Interfaces:
- Component, Service, ShutdownableService
public class IBatisComponent
- extends ResourceBasedComponent
An IBatisPollingConsumer
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,
IBatisPollingConsumer
| Methods inherited from class org.apache.camel.impl.DefaultComponent |
afterConfiguration, createEndpoint, doStart, doStop, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, ifStartsWithReturnRemainder, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setCamelContext, setProperties, useIntrospectionOnEndpoint, validateParameters, validateURI |
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, doShutdown, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, shutdown, start, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IBatisComponent
public IBatisComponent()
IBatisComponent
public IBatisComponent(com.ibatis.sqlmap.client.SqlMapClient sqlMapClient)
createEndpoint
protected IBatisEndpoint createEndpoint(String uri,
String remaining,
Map<String,Object> parameters)
throws Exception
- Creates an IbatisEndpoint for use by an IbatisConsumer or IbatisProducer.
- Specified by:
createEndpoint in class DefaultComponent
- Throws:
Exception
getSqlMapClient
public com.ibatis.sqlmap.client.SqlMapClient getSqlMapClient()
throws IOException
- Returns the configured SqlMapClient.
- Returns:
- com.ibatis.sqlmap.client.SqlMapClient
- Throws:
IOException - If configured with a SqlMapConfig and there
is a problem reading the resource.
setSqlMapClient
public void setSqlMapClient(com.ibatis.sqlmap.client.SqlMapClient sqlMapClient)
- Sets the SqlMapClient
getSqlMapConfig
public String getSqlMapConfig()
- The Spring uri of the SqlMapConfig
setSqlMapConfig
public void setSqlMapConfig(String sqlMapConfig)
isUseTransactions
public boolean isUseTransactions()
setUseTransactions
public void setUseTransactions(boolean useTransactions)
Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.