@Component(value="sql")
public class SqlComponent
extends org.apache.camel.support.DefaultComponent
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.
|
afterConfiguration, createEndpoint, createEndpoint, doInit, doStart, doStop, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getComponentPropertyConfigurer, getEndpointPropertyConfigurer, getExtension, getSupportedExtensions, ifStartsWithReturnRemainder, isBasicPropertyBinding, preProcessUri, registerExtension, registerExtension, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setBasicPropertyBinding, setCamelContext, setProperties, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURI
doResume, doShutdown, doSuspend, getStatus, init, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
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.support.DefaultComponent
Exception
public void setDataSource(DataSource dataSource)
public DataSource getDataSource()
public void setUsePlaceholder(boolean usePlaceholder)
public boolean isUsePlaceholder()
Apache Camel