|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultComponent
org.apache.camel.component.ResourceBasedComponent
org.apache.camel.component.ibatis.IBatisComponent
public class IBatisComponent
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
IBatisProducer,
IBatisPollingConsumer
| Field Summary |
|---|
| Fields inherited from class org.apache.camel.component.ResourceBasedComponent |
|---|
log |
| Constructor Summary | |
|---|---|
IBatisComponent()
|
|
IBatisComponent(com.ibatis.sqlmap.client.SqlMapClient sqlMapClient)
|
|
| Method Summary | |
|---|---|
protected IBatisEndpoint |
createEndpoint(String uri,
String remaining,
Map<String,Object> parameters)
Creates an IbatisEndpoint for use by an IbatisConsumer or IbatisProducer. |
com.ibatis.sqlmap.client.SqlMapClient |
getSqlMapClient()
Returns the configured SqlMapClient. |
String |
getSqlMapConfig()
The Spring uri of the SqlMapConfig |
boolean |
isUseTransactions()
|
void |
setSqlMapClient(com.ibatis.sqlmap.client.SqlMapClient sqlMapClient)
Sets the SqlMapClient |
void |
setSqlMapConfig(String sqlMapConfig)
|
void |
setUseTransactions(boolean useTransactions)
|
| Methods inherited from class org.apache.camel.component.ResourceBasedComponent |
|---|
getResourceLoader, resolveMandatoryResource, setResourceLoader |
| 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, 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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IBatisComponent()
public IBatisComponent(com.ibatis.sqlmap.client.SqlMapClient sqlMapClient)
| Method Detail |
|---|
protected IBatisEndpoint createEndpoint(String uri,
String remaining,
Map<String,Object> parameters)
throws Exception
createEndpoint in class org.apache.camel.impl.DefaultComponentException
public com.ibatis.sqlmap.client.SqlMapClient getSqlMapClient()
throws IOException
IOException - If configured with a SqlMapConfig and there
is a problem reading the resource.public void setSqlMapClient(com.ibatis.sqlmap.client.SqlMapClient sqlMapClient)
public String getSqlMapConfig()
public void setSqlMapConfig(String sqlMapConfig)
public boolean isUseTransactions()
public void setUseTransactions(boolean useTransactions)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||