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

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(String endpointUri, JdbcTemplate jdbcTemplate, String query)
           
SqlEndpoint(String uri, String query, Component component, DataSource dataSource, Map parameters)
           
 
Method Summary
 Consumer createConsumer(Processor processor)
           
 Producer createProducer()
           
 boolean isSingleton()
           
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
configureProperties, convertTo, createEndpointUri, createExchange, createExchange, createExchange, createExecutorService, createPollingConsumer, equals, getCamelContext, getComponent, getContext, getEndpointUri, getExchangePattern, getExchangeType, getExecutorService, hashCode, isLenientProperties, setCamelContext, setContext, 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(String uri,
                   String query,
                   Component component,
                   DataSource dataSource,
                   Map parameters)
            throws Exception
Throws:
Exception

SqlEndpoint

public SqlEndpoint(String endpointUri,
                   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()


Apache CAMEL