[camel] branch master updated: CAMEL-14565: Add docs for missing option

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[camel] branch master updated: CAMEL-14565: Add docs for missing option

davsclaus-2
This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new 24b1a3f  CAMEL-14565: Add docs for missing option
24b1a3f is described below

commit 24b1a3fa0385da46988c27121fc63a33d02a4fa2
Author: Claus Ibsen <[hidden email]>
AuthorDate: Fri Feb 14 12:50:36 2020 +0100

    CAMEL-14565: Add docs for missing option
---
 .../java/org/apache/camel/component/jooq/JooqEndpointConfigurer.java   | 2 ++
 .../src/generated/resources/org/apache/camel/component/jooq/jooq.json  | 1 +
 components/camel-jooq/src/main/docs/jooq-component.adoc                | 3 ++-
 .../main/java/org/apache/camel/component/jooq/JooqConfiguration.java   | 1 +
 docs/components/modules/ROOT/pages/jooq-component.adoc                 | 3 ++-
 5 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/components/camel-jooq/src/generated/java/org/apache/camel/component/jooq/JooqEndpointConfigurer.java b/components/camel-jooq/src/generated/java/org/apache/camel/component/jooq/JooqEndpointConfigurer.java
index 12e13e9..8b01c4d 100644
--- a/components/camel-jooq/src/generated/java/org/apache/camel/component/jooq/JooqEndpointConfigurer.java
+++ b/components/camel-jooq/src/generated/java/org/apache/camel/component/jooq/JooqEndpointConfigurer.java
@@ -15,6 +15,8 @@ public class JooqEndpointConfigurer extends PropertyConfigurerSupport implements
     public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
         JooqEndpoint target = (JooqEndpoint) obj;
         switch (ignoreCase ? name.toLowerCase() : name) {
+        case "databaseconfiguration":
+        case "databaseConfiguration": target.getConfiguration().setDatabaseConfiguration(property(camelContext, org.jooq.Configuration.class, value)); return true;
         case "bridgeerrorhandler":
         case "bridgeErrorHandler": target.setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
         case "consumedelete":
diff --git a/components/camel-jooq/src/generated/resources/org/apache/camel/component/jooq/jooq.json b/components/camel-jooq/src/generated/resources/org/apache/camel/component/jooq/jooq.json
index 12dbcac..6ef880f 100644
--- a/components/camel-jooq/src/generated/resources/org/apache/camel/component/jooq/jooq.json
+++ b/components/camel-jooq/src/generated/resources/org/apache/camel/component/jooq/jooq.json
@@ -26,6 +26,7 @@
   },
   "properties": {
     "entityType": { "kind": "path", "displayName": "Entity Type", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.Class<java.lang.Object>", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.jooq.JooqConfiguration", "configurationField": "configuration", "description": "JOOQ entity class" },
+    "databaseConfiguration": { "kind": "parameter", "displayName": "Database Configuration", "group": "common", "label": "common", "required": false, "type": "object", "javaType": "org.jooq.Configuration", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.jooq.JooqConfiguration", "configurationField": "configuration", "description": "To use a specific database configuration" },
     "bridgeErrorHandler": { "kind": "parameter", "displayName": "Bridge Error Handler", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled b [...]
     "consumeDelete": { "kind": "parameter", "displayName": "Consume Delete", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": "true", "configurationClass": "org.apache.camel.component.jooq.JooqConfiguration", "configurationField": "configuration", "description": "Delete entity after it is consumed" },
     "sendEmptyMessageWhenIdle": { "kind": "parameter", "displayName": "Send Empty Message When Idle", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "If the polling consumer did not poll any files, you can enable this option to send an empty message (no body) instead." },
diff --git a/components/camel-jooq/src/main/docs/jooq-component.adoc b/components/camel-jooq/src/main/docs/jooq-component.adoc
index 1e9b490..9f44bb8 100644
--- a/components/camel-jooq/src/main/docs/jooq-component.adoc
+++ b/components/camel-jooq/src/main/docs/jooq-component.adoc
@@ -78,12 +78,13 @@ with the following path and query parameters:
 |===
 
 
-=== Query Parameters (25 parameters):
+=== Query Parameters (26 parameters):
 
 
 [width="100%",cols="2,5,^1,2",options="header"]
 |===
 | Name | Description | Default | Type
+| *databaseConfiguration* (common) | To use a specific database configuration |  | Configuration
 | *bridgeErrorHandler* (consumer) | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | boolean
 | *consumeDelete* (consumer) | Delete entity after it is consumed | true | boolean
 | *sendEmptyMessageWhenIdle* (consumer) | If the polling consumer did not poll any files, you can enable this option to send an empty message (no body) instead. | false | boolean
diff --git a/components/camel-jooq/src/main/java/org/apache/camel/component/jooq/JooqConfiguration.java b/components/camel-jooq/src/main/java/org/apache/camel/component/jooq/JooqConfiguration.java
index 1ae55df..a34dcc6 100644
--- a/components/camel-jooq/src/main/java/org/apache/camel/component/jooq/JooqConfiguration.java
+++ b/components/camel-jooq/src/main/java/org/apache/camel/component/jooq/JooqConfiguration.java
@@ -37,6 +37,7 @@ public class JooqConfiguration implements Cloneable {
     @UriParam(label = "producer", description = "To execute plain SQL query")
     private String query;
 
+    @UriParam(label = "common", description = "To use a specific database configuration")
     private Configuration databaseConfiguration;
 
     public JooqConfiguration() {
diff --git a/docs/components/modules/ROOT/pages/jooq-component.adoc b/docs/components/modules/ROOT/pages/jooq-component.adoc
index 277d27b..dc12919 100644
--- a/docs/components/modules/ROOT/pages/jooq-component.adoc
+++ b/docs/components/modules/ROOT/pages/jooq-component.adoc
@@ -79,12 +79,13 @@ with the following path and query parameters:
 |===
 
 
-=== Query Parameters (25 parameters):
+=== Query Parameters (26 parameters):
 
 
 [width="100%",cols="2,5,^1,2",options="header"]
 |===
 | Name | Description | Default | Type
+| *databaseConfiguration* (common) | To use a specific database configuration |  | Configuration
 | *bridgeErrorHandler* (consumer) | Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. | false | boolean
 | *consumeDelete* (consumer) | Delete entity after it is consumed | true | boolean
 | *sendEmptyMessageWhenIdle* (consumer) | If the polling consumer did not poll any files, you can enable this option to send an empty message (no body) instead. | false | boolean