@UriEndpoint(firstVersion="2.22.0",
scheme="mybatis-bean",
title="MyBatis Bean",
syntax="mybatis-bean:beanName:methodName",
producerOnly=true,
label="database,sql")
public class MyBatisBeanEndpoint
extends BaseMyBatisEndpoint
| Constructor and Description |
|---|
MyBatisBeanEndpoint() |
MyBatisBeanEndpoint(String endpointUri,
org.apache.camel.Component component,
String beanName,
String methodName) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Producer |
createProducer() |
String |
getBeanName() |
String |
getMethodName() |
void |
setBeanName(String beanName)
Name of the bean with the MyBatis annotations.
|
void |
setMethodName(String methodName)
Name of the method on the bean that has the SQL query to be executed.
|
getComponent, getExecutorType, getInputHeader, getOutputHeader, getSqlSessionFactory, isSingleton, setExecutorType, setExecutorType, setInputHeader, setOutputHeaderconfigurePollingConsumer, configureProperties, configureScheduledPollConsumerProperties, doStart, doStop, getBackoffErrorThreshold, getBackoffIdleThreshold, getBackoffMultiplier, getDelay, getInitialDelay, getPollStrategy, getRunLoggingLevel, getScheduledExecutorService, getScheduler, getSchedulerProperties, getTimeUnit, initConsumerProperties, isGreedy, isSendEmptyMessageWhenIdle, isStartScheduler, isUseFixedDelay, setBackoffErrorThreshold, setBackoffIdleThreshold, setBackoffMultiplier, setDelay, setGreedy, setInitialDelay, setPollStrategy, setRunLoggingLevel, setScheduledExecutorService, setScheduler, setScheduler, setSchedulerProperties, setSendEmptyMessageWhenIdle, setStartScheduler, setTimeUnit, setUseFixedDelayconfigureConsumer, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBridgeErrorHandler, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setBridgeErrorHandler, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
createConsumer in interface org.apache.camel.EndpointcreateConsumer in class org.apache.camel.impl.DefaultPollingEndpointExceptionpublic String getBeanName()
public void setBeanName(String beanName)
public String getMethodName()
public void setMethodName(String methodName)
Apache Camel