org.apache.camel.component.sql
Class SqlEndpoint
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultEndpoint
org.apache.camel.component.sql.SqlEndpoint
- All Implemented Interfaces:
- org.apache.camel.CamelContextAware, org.apache.camel.Endpoint, org.apache.camel.IsSingleton, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.HasId
public class SqlEndpoint
- extends org.apache.camel.impl.DefaultEndpoint
SQL Endpoint. Endpoint URI should contain valid SQL statement, but instead of
question marks (that are parameter placeholders), sharp signs should be used.
This is because in camel question mark has other meaning.
Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
configureProperties, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getId, hashCode, isLenientProperties, isSynchronous, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, toString |
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 interface org.apache.camel.Service |
start, stop |
SqlEndpoint
public SqlEndpoint()
SqlEndpoint
public SqlEndpoint(String uri,
org.apache.camel.Component component,
org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
String query)
createConsumer
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
- Throws:
Exception
createProducer
public org.apache.camel.Producer createProducer()
throws Exception
- Throws:
Exception
isSingleton
public boolean isSingleton()
getJdbcTemplate
public org.springframework.jdbc.core.JdbcTemplate getJdbcTemplate()
setJdbcTemplate
public void setJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
getQuery
public String getQuery()
setQuery
public void setQuery(String query)
createEndpointUri
protected String createEndpointUri()
- Overrides:
createEndpointUri
in class org.apache.camel.impl.DefaultEndpoint
Apache CAMEL