public class SqlEndpoint
extends org.apache.camel.impl.DefaultPollingEndpoint
Constructor and Description |
---|
SqlEndpoint() |
SqlEndpoint(String uri,
org.apache.camel.Component component,
org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
String query) |
Modifier and Type | Method and Description |
---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
protected String |
createEndpointUri() |
org.apache.camel.Producer |
createProducer() |
org.springframework.jdbc.core.JdbcTemplate |
getJdbcTemplate() |
int |
getMaxMessagesPerPoll() |
String |
getOnConsume() |
String |
getOnConsumeBatchComplete() |
String |
getOnConsumeFailed() |
int |
getParametersCount() |
SqlPrepareStatementStrategy |
getPrepareStatementStrategy() |
SqlProcessingStrategy |
getProcessingStrategy() |
String |
getQuery() |
char |
getSeparator() |
boolean |
isAllowNamedParameters() |
boolean |
isAlwaysPopulateStatement() |
boolean |
isBatch() |
boolean |
isSingleton() |
void |
setAllowNamedParameters(boolean allowNamedParameters) |
void |
setAlwaysPopulateStatement(boolean alwaysPopulateStatement) |
void |
setBatch(boolean batch) |
void |
setJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate) |
void |
setMaxMessagesPerPoll(int maxMessagesPerPoll) |
void |
setOnConsume(String onConsume) |
void |
setOnConsumeBatchComplete(String onConsumeBatchComplete) |
void |
setOnConsumeFailed(String onConsumeFailed) |
void |
setParametersCount(int parametersCount) |
void |
setPrepareStatementStrategy(SqlPrepareStatementStrategy prepareStatementStrategy) |
void |
setProcessingStrategy(SqlProcessingStrategy processingStrategy) |
void |
setQuery(String query) |
void |
setSeparator(char separator) |
configureConsumer, 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, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception
createConsumer
in interface org.apache.camel.Endpoint
createConsumer
in class org.apache.camel.impl.DefaultPollingEndpoint
Exception
public boolean isSingleton()
public 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)
public int getMaxMessagesPerPoll()
public void setMaxMessagesPerPoll(int maxMessagesPerPoll)
public SqlProcessingStrategy getProcessingStrategy()
public void setProcessingStrategy(SqlProcessingStrategy processingStrategy)
public SqlPrepareStatementStrategy getPrepareStatementStrategy()
public void setPrepareStatementStrategy(SqlPrepareStatementStrategy prepareStatementStrategy)
public String getOnConsume()
public void setOnConsume(String onConsume)
public String getOnConsumeFailed()
public void setOnConsumeFailed(String onConsumeFailed)
public String getOnConsumeBatchComplete()
public void setOnConsumeBatchComplete(String onConsumeBatchComplete)
public boolean isAllowNamedParameters()
public void setAllowNamedParameters(boolean allowNamedParameters)
public boolean isAlwaysPopulateStatement()
public void setAlwaysPopulateStatement(boolean alwaysPopulateStatement)
public char getSeparator()
public void setSeparator(char separator)
public int getParametersCount()
public void setParametersCount(int parametersCount)
protected String createEndpointUri()
createEndpointUri
in class org.apache.camel.impl.DefaultEndpoint
Apache Camel