davsclaus opened a new pull request, #30937:
URL: https://github.com/apache/camel/pull/30937

   # Description
   
   Part of [CAMEL-23832](https://issues.apache.org/jira/browse/CAMEL-23832). 
The umbrella ticket stays open.
   
   ## Summary
   
   Rewrites the component description and the texts of 14 endpoint options and 
2 headers of `cql` (17 texts). The old
   texts were mostly a few words ("Keyspace to use", "Cluster name", "beanRef 
is defined using bean:id") and did not say
   that keyspace, datacenter, username, password, loadBalancingPolicyClass and 
extraTypeCodecs apply only to the session
   that the endpoint creates from the hosts, nor what the session option and a 
`bean:` reference replace. The old
   component description named Cassandra 2.0, CQL3 and Thrift, and the DataStax 
driver; the component now uses the Apache
   Cassandra Java driver. The `CamelCqlResumeAction` text said it was a resume 
action to execute, but it is the registry
   name of the `ResumeAction` bean, not a message header. Sources: the Camel 
code (endpoint, component, consumer,
   producer, `ResultSetConversionStrategies`, `CassandraExtraCodecs`, 
`ResumeStrategyHelper`) and the `reference.conf` of
   `org.apache.cassandra:java-driver-core` 4.19.4 (load balancing policies).
   
   ### Found, not changed
   
   - `clusterName` does nothing: the endpoint stores it and never passes it to 
the driver. Its text now says it is not
     used.
   - `consistencyLevel` has a field and a setter in `CassandraEndpoint` and is 
passed to every prepared statement, but it
     has no `@UriParam`, so it is not an endpoint option and cannot be set from 
the URI.
   - `CamelCqlResumeAction` is documented as a consumer header, but the 
consumer never reads or sets it as a header: it is
     the name under which it looks up the `ResumeAction` in the registry.
   - `CamelCqlQuery` has `javaType = "String"`, but the producer also accepts a 
`SimpleStatement` in it.
   - `resultSetConversionStrategy` has no `defaultValue` in the metadata, 
although the default is `ALL`.
   - `CassandraComponent` matches `ALL` and `ONE` of 
`resultSetConversionStrategy` ignoring case, but `LIMIT_` only in upper
     case, while `ResultSetConversionStrategies.fromName` accepts any case.
   - `extraTypeCodecs` silently ignores an unknown codec name.
   
   ## Tests
   
   - There is no new test, as only description text changes.
   - A script compared the component JSON with the parent commit: only 
`description` fields changed (17 texts).
   
   # Target
   
   - [x] I checked that the commit is targeting the correct branch (Camel 4 
uses the `main` branch)
   
   # Tracking
   
   - [x] If this is a large change, bug fix, or code improvement, I checked 
there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for 
the change (usually before you start working on it).
   
   # Apache Camel coding standards and style
   
   - [x] I checked that each commit in the pull request has a meaningful 
subject line and body.
   - [x] I ran the formatter and built the module, then regenerated the catalog 
copy, `dsl/camel-endpointdsl` and `dsl/camel-componentdsl`, and committed all 
generated changes.
   
   # AI-assisted contributions
   
   - [x] If this PR includes AI-generated code, commits have proper 
co-authorship attribution (e.g., `Co-authored-by` trailers) and the PR 
description identifies the AI tool used.
   
   _Claude Code on behalf of davsclaus_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to