public class SqlEndpoint extends DefaultEndpoint
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending| Constructor and Description |
|---|
SqlEndpoint() |
SqlEndpoint(String uri,
Component component,
org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
String query) |
| Modifier and Type | Method and Description |
|---|---|
Consumer |
createConsumer(Processor processor)
Creates a new Event
Driven Consumer which consumes messages from the endpoint using the
given processor
|
protected String |
createEndpointUri()
A factory method to lazily create the endpointUri if none is specified
|
Producer |
createProducer()
Creates a new producer which is used send messages into the endpoint
|
org.springframework.jdbc.core.JdbcTemplate |
getJdbcTemplate() |
String |
getQuery() |
boolean |
isBatch() |
boolean |
isSingleton()
Whether this class supports being singleton or not.
|
void |
setBatch(boolean batch) |
void |
setJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate) |
void |
setQuery(String query) |
configureConsumer, configureProperties, createEndpointConfiguration, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, hashCode, isLenientProperties, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, shutdown, start, stop, suspendpublic Consumer createConsumer(Processor processor) throws Exception
Endpointprocessor - the given processorException - can be thrownpublic Producer createProducer() throws Exception
EndpointException - can be thrownpublic boolean isSingleton()
IsSingletonpublic org.springframework.jdbc.core.JdbcTemplate getJdbcTemplate()
public void setJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
public String getQuery()
public void setQuery(String query)
public boolean isBatch()
public void setBatch(boolean batch)
protected String createEndpointUri()
DefaultEndpointcreateEndpointUri in class DefaultEndpointApache CAMEL