public class SqlComponent
extends org.apache.camel.impl.UriEndpointComponent
Constructor and Description |
---|
SqlComponent() |
SqlComponent(org.apache.camel.CamelContext context) |
SqlComponent(org.apache.camel.CamelContext context,
Class<? extends org.apache.camel.Endpoint> endpointClass) |
SqlComponent(Class<? extends org.apache.camel.Endpoint> endpointClass) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.camel.Endpoint |
createEndpoint(String uri,
String remaining,
Map<String,Object> parameters) |
DataSource |
getDataSource() |
boolean |
isUsePlaceholder() |
void |
setDataSource(DataSource dataSource)
Sets the DataSource to use to communicate with the database.
|
void |
setUsePlaceholder(boolean usePlaceholder)
Sets whether to use placeholder and replace all placeholder characters with ? sign in the SQL queries.
|
createComponentConfiguration, createParameterConfigurationMap, getEndpointClass, getParameterConfigurationMap, populateParameterConfigurationMap, setEndpointClass
afterConfiguration, createConfiguration, createEndpoint, doStart, doStop, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, ifStartsWithReturnRemainder, preProcessUri, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setCamelContext, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURI
public SqlComponent()
public SqlComponent(Class<? extends org.apache.camel.Endpoint> endpointClass)
public SqlComponent(org.apache.camel.CamelContext context)
public SqlComponent(org.apache.camel.CamelContext context, Class<? extends org.apache.camel.Endpoint> endpointClass)
protected org.apache.camel.Endpoint createEndpoint(String uri, String remaining, Map<String,Object> parameters) throws Exception
createEndpoint
in class org.apache.camel.impl.DefaultComponent
Exception
public void setDataSource(DataSource dataSource)
public DataSource getDataSource()
public void setUsePlaceholder(boolean usePlaceholder)
public boolean isUsePlaceholder()
Apache Camel