sql endpoint

sql endpoint

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.

Name Type Description
allowNamedParameters boolean
alwaysPopulateStatement boolean
batch boolean Enables or disables batch mode
maxMessagesPerPoll int Sets the maximum number of messages to poll
noop boolean
onConsume java.lang.String
onConsumeBatchComplete java.lang.String
onConsumeFailed java.lang.String
outputClass java.lang.String
outputType org.apache.camel.component.sql.SqlOutputType
parametersCount int
prepareStatementStrategy org.apache.camel.component.sql.SqlPrepareStatementStrategy
processingStrategy org.apache.camel.component.sql.SqlProcessingStrategy
separator char

sql consumer

Name Type Description
breakBatchOnConsumeFail boolean Sets whether to break batch if onConsume failed.
expectedUpdateCount int Sets an expected update count to validate when using onConsume. @param expectedUpdateCount typically set this value to 1 to expect 1 row updated.
onConsume java.lang.String Sets a SQL to execute when the row has been successfully processed.
onConsumeBatchComplete java.lang.String
onConsumeFailed java.lang.String Sets a SQL to execute when the row failed being processed.
routeEmptyResultSet boolean Sets whether empty resultset should be allowed to be sent to the next hop. defaults to false. So the empty resultset will be filtered out.
useIterator boolean Sets how resultset should be delivered to route. Indicates delivery as either a list or individual object. defaults to true.