@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, doBuild, doStart, doStop, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getComponentPropertyConfigurer, getEndpointPropertyConfigurer, getExtension, getSupportedExtensions, ifStartsWithReturnRemainder, isBasicPropertyBinding, isBridgeErrorHandler, isLazyStartProducer, registerExtension, registerExtension, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setBasicPropertyBinding, setBridgeErrorHandler, setCamelContext, setLazyStartProducer, setProperties, setProperties, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURI
build, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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