org.apache.camel.component.sql
Class SqlEndpoint

java.lang.Object
  extended by org.apache.camel.impl.DefaultEndpoint
      extended by org.apache.camel.component.sql.SqlEndpoint
All Implemented Interfaces:
CamelContextAware, Endpoint, IsSingleton

public class SqlEndpoint
extends 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.


Constructor Summary
SqlEndpoint()
           
SqlEndpoint(String uri, Component component, org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, String query)
           
 
Method Summary
 Consumer createConsumer(Processor processor)
           
protected  String createEndpointUri()
           
 Producer createProducer()
           
 org.springframework.jdbc.core.JdbcTemplate getJdbcTemplate()
           
 String getQuery()
           
 boolean isSingleton()
           
 void setJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
           
 void setQuery(String query)
           
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
configureProperties, createExchange, createExchange, createExchange, createPollingConsumer, createScheduledExecutorService, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getExecutorService, getScheduledExecutorService, hashCode, isLenientProperties, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setExecutorService, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SqlEndpoint

public SqlEndpoint()

SqlEndpoint

public SqlEndpoint(String uri,
                   Component component,
                   org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
                   String query)
Method Detail

createConsumer

public Consumer createConsumer(Processor processor)
                        throws Exception
Throws:
Exception

createProducer

public 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 DefaultEndpoint


Apache CAMEL