GitHub user snurmine opened a pull request:
https://github.com/apache/camel/pull/759
CAMEL-4725: Batch support. Single Producer for both SQL-components.
Added batch support for StoredProcedures. It uses Spring API as much as
possible.
StoredProcedure can be read from message body and parameters are read from
header.
Only Map is supported as parameter in this case.
Refactored SqlProducer to support both CallableStatement and
PreparedStatement. New name is DefaultSqlProducer(as it is now more general
class). Adapters for PreparedStatement, CallableStatement and
CallableStatement batch mode are in "wrapper"-package.
Moved parameters only sensible for SQL component into SqlComponent and
left common properties into DefaultSqlComponent.
There are a lot of changes to avoid duplicate logic in code between
CallableStament and PreparedStatement implementations.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/snurmine/camel CAMEL-4725
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/759.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #759
----
commit 2a7ae3c8da7c43543b610638d0f8261d879c1b7c
Author: Sami Nurminen <[email protected]>
Date: 2016-01-09T10:18:27Z
CAMEL-4725: Batch support. Single Producer for both SQL-components.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---