...
Header | Description |
---|---|
| If the query is a |
| If the query is an |
| Camel 2.10: Rows that contains the generated kets. |
| Camel 2.10: The number of rows in the header that contains generated keys. |
Generated keys
Available as of Camel 2.10
If you insert data using SQL INSERT, then the RDBMS may support auto generated keys. You can instruct the JDBC producer to return the generated keys in headers.
To do that set the header CamelRetrieveGeneratedKeys=true
. Then the generated keys will be provided as headers with the keys listed in the table above.
You can see more details in this unit test.
Samples
In the following example, we fetch the rows from the customer table.
...