The sql component allows you to work with databases using JDBC Stored Procedure queries.
Name | Kind | Group | Required | Default | Type | Enum | Description |
---|---|---|---|---|---|---|---|
template | path | producer | true | java.lang.String | Sets the StoredProcedure template to perform | ||
bridgeErrorHandler | parameter | consumer | boolean | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN/ERROR level and ignored. | |||
exceptionHandler | parameter | consumer (advanced) | org.apache.camel.spi.ExceptionHandler | To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this options is not in use. By default the consumer will deal with exceptions, that will be logged at WARN/ERROR level and ignored. | |||
exchangePattern | parameter | consumer (advanced) | org.apache.camel.ExchangePattern | InOnly RobustInOnly InOut InOptionalOut OutOnly RobustOutOnly OutIn OutOptionalIn |
Sets the exchange pattern when the consumer creates an exchange. | ||
batch | parameter | producer | boolean | Enables or disables batch mode | |||
dataSource | parameter | producer | javax.sql.DataSource | Sets the DataSource to use to communicate with the database. | |||
function | parameter | producer | boolean | Whether this call is for a function. | |||
noop | parameter | producer | boolean | If set, will ignore the results of the template and use the existing IN message as the OUT message for the continuation of processing | |||
outputHeader | parameter | producer | java.lang.String | Store the template result in a header instead of the message body. By default, outputHeader == null and the template result is stored in the message body, any existing content in the message body is discarded. If outputHeader is set, the value is used as the name of the header to store the template result and the original message body is preserved. | |||
useMessageBodyForTemplate | parameter | producer | boolean | Whether to use the message body as the template and then headers for parameters. If this option is enabled then the template in the uri is not used. | |||
synchronous | parameter | advanced | false | boolean | Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). |