camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [2/2] camel git commit: CAMEL-10459: camel-elsql do not support batch
Date Wed, 09 Nov 2016 10:23:46 GMT
CAMEL-10459: camel-elsql do not support batch


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/876be5f0
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/876be5f0
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/876be5f0

Branch: refs/heads/camel-2.18.x
Commit: 876be5f05db071e349f82bd202cfcbb4514175a8
Parents: 19a6680
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Wed Nov 9 11:23:04 2016 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Wed Nov 9 11:23:36 2016 +0100

----------------------------------------------------------------------
 components/camel-elsql/src/main/docs/elsql-component.adoc         | 3 +--
 .../main/java/org/apache/camel/component/elsql/ElsqlEndpoint.java | 3 ++-
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/876be5f0/components/camel-elsql/src/main/docs/elsql-component.adoc
----------------------------------------------------------------------
diff --git a/components/camel-elsql/src/main/docs/elsql-component.adoc b/components/camel-elsql/src/main/docs/elsql-component.adoc
index 6f79bd0..58f52ee 100644
--- a/components/camel-elsql/src/main/docs/elsql-component.adoc
+++ b/components/camel-elsql/src/main/docs/elsql-component.adoc
@@ -73,7 +73,7 @@ The ElSQL component supports 4 options which are listed below.
 // component options: END
 
 // endpoint options: START
-The ElSQL component supports 49 endpoint options which are listed below:
+The ElSQL component supports 48 endpoint options which are listed below:
 
 {% raw %}
 [width="100%",cols="2,1,1m,1m,5",options="header"]
@@ -105,7 +105,6 @@ The ElSQL component supports 49 endpoint options which are listed below:
 | exchangePattern | consumer (advanced) |  | ExchangePattern | Sets the exchange pattern
when the consumer creates an exchange.
 | pollStrategy | consumer (advanced) |  | PollingConsumerPollStrategy | A pluggable org.apache.camel.PollingConsumerPollingStrategy
allowing you to provide your custom implementation to control error handling usually occurred
during the poll operation before an Exchange have been created and being routed in Camel.
 | processingStrategy | consumer (advanced) |  | SqlProcessingStrategy | Allows to plugin
to use a custom org.apache.camel.component.sql.SqlProcessingStrategy to execute queries when
the consumer has processed the rows/batch.
-| batch | producer | false | boolean | Enables or disables batch mode
 | noop | producer | false | boolean | If set will ignore the results of the SQL query and
use the existing IN message as the OUT message for the continuation of processing
 | useMessageBodyForSql | producer | false | boolean | Whether to use the message body as
the SQL and then headers for parameters. If this option is enabled then the SQL in the uri
is not used.
 | alwaysPopulateStatement | producer (advanced) | false | boolean | If enabled then the populateStatement
method from org.apache.camel.component.sql.SqlPrepareStatementStrategy is always invoked also
if there is no expected parameters to be prepared. When this is false then the populateStatement
is only invoked if there is 1 or more expected parameters to be set; for example this avoids
reading the message body/headers for SQL queries with no parameters.

http://git-wip-us.apache.org/repos/asf/camel/blob/876be5f0/components/camel-elsql/src/main/java/org/apache/camel/component/elsql/ElsqlEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-elsql/src/main/java/org/apache/camel/component/elsql/ElsqlEndpoint.java
b/components/camel-elsql/src/main/java/org/apache/camel/component/elsql/ElsqlEndpoint.java
index 8d67073..ce2f47c 100644
--- a/components/camel-elsql/src/main/java/org/apache/camel/component/elsql/ElsqlEndpoint.java
+++ b/components/camel-elsql/src/main/java/org/apache/camel/component/elsql/ElsqlEndpoint.java
@@ -46,7 +46,8 @@ import org.springframework.jdbc.core.namedparam.SqlParameterSource;
 /**
  * The elsql component is an extension to the existing SQL Component that uses ElSql to define
the SQL queries.
  */
-@UriEndpoint(scheme = "elsql", title = "ElSQL", syntax = "elsql:elsqlName:resourceUri", consumerClass
= ElsqlConsumer.class, label = "database,sql")
+@UriEndpoint(scheme = "elsql", title = "ElSQL", syntax = "elsql:elsqlName:resourceUri", consumerClass
= ElsqlConsumer.class,
+        label = "database,sql", excludeProperties = "batch") // batch is not supported
 public class ElsqlEndpoint extends DefaultSqlEndpoint {
 
     private static final Logger LOG = LoggerFactory.getLogger(ElsqlEndpoint.class);


Mime
View raw message