This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch camel-2.x in repository https://gitbox.apache.org/repos/asf/camel.git
commit 1374b220cc3072612f9bb5fdc9bfd85f376bc87f Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Thu Oct 17 15:33:37 2019 +0200 Camel-SQL: Fixed Build --- components/camel-sql/src/main/docs/sql-component.adoc | 4 +++- components/camel-sql/src/main/docs/sql-stored-component.adoc | 4 +++- .../apache/camel/component/sql/stored/SqlStoredEndpoint.java | 12 +++++++++--- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/components/camel-sql/src/main/docs/sql-component.adoc b/components/camel-sql/src/main/docs/sql-component.adoc index 294fb8a..c39fa82 100644 --- a/components/camel-sql/src/main/docs/sql-component.adoc +++ b/components/camel-sql/src/main/docs/sql-component.adoc @@ -1,6 +1,8 @@ +[[sql-component]] == SQL Component *Available as of Camel version 1.4* + *Available as of Camel version 1.4* @@ -876,4 +878,4 @@ To use this feature, add the following dependencies to your spring boot pom.xml </dependency> ---- -You should also include the specific database driver, if needed. +You should also include the specific database driver, if needed. \ No newline at end of file diff --git a/components/camel-sql/src/main/docs/sql-stored-component.adoc b/components/camel-sql/src/main/docs/sql-stored-component.adoc index 1481712..9d3888c 100644 --- a/components/camel-sql/src/main/docs/sql-stored-component.adoc +++ b/components/camel-sql/src/main/docs/sql-stored-component.adoc @@ -1,6 +1,8 @@ +[[sql-stored-component]] == SQL Stored Procedure Component *Available as of Camel version 2.17* + *Available as of Camel version 2.17* @@ -278,4 +280,4 @@ To use this feature, add the following dependencies to your spring boot pom.xml </dependency> ---- -You should also include the specific database driver, if needed. +You should also include the specific database driver, if needed. \ No newline at end of file diff --git a/components/camel-sql/src/main/java/org/apache/camel/component/sql/stored/SqlStoredEndpoint.java b/components/camel-sql/src/main/java/org/apache/camel/component/sql/stored/SqlStoredEndpoint.java index 6d80de9..b2fa2b3 100644 --- a/components/camel-sql/src/main/java/org/apache/camel/component/sql/stored/SqlStoredEndpoint.java +++ b/components/camel-sql/src/main/java/org/apache/camel/component/sql/stored/SqlStoredEndpoint.java @@ -31,7 +31,8 @@ import org.apache.camel.util.UnsafeUriCharactersEncoder; import org.springframework.jdbc.core.JdbcTemplate; /** - * The sql component allows you to work with databases using JDBC Stored Procedure queries. + * The sql component allows you to work with databases using JDBC Stored + * Procedure queries. */ @UriEndpoint(firstVersion = "2.17.0", scheme = "sql-stored", title = "SQL Stored Procedure", syntax = "sql-stored:template", producerOnly = true, label = "database,sql") public class SqlStoredEndpoint extends DefaultEndpoint { @@ -52,8 +53,8 @@ public class SqlStoredEndpoint extends DefaultEndpoint { @UriParam(description = "If set, will ignore the results of the template and use the existing IN message as the OUT message for the continuation of processing") private boolean noop; @UriParam(description = "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.") + + " 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.") private String outputHeader; @UriParam(description = "Whether this call is for a function.") private boolean function; @@ -160,4 +161,9 @@ public class SqlStoredEndpoint extends DefaultEndpoint { this.function = function; } + @Override + public boolean isSingleton() { + return true; + } + }