Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delegation support for JDBC 4.3 ConnectionBuilder and ShardingKeyBuilder #31795

Closed
jhoeller opened this issue Dec 8, 2023 · 0 comments
Closed
Assignees
Labels
in: data Issues in data modules (jdbc, orm, oxm, tx) type: enhancement A general enhancement
Milestone

Comments

@jhoeller
Copy link
Contributor

jhoeller commented Dec 8, 2023

The JDBC 4.3 methods createConnectionBuilder() and createShardingKeyBuilder() (available as of JDK 9) have default implementations which just throw a not-supported exception. For Spring's DelegatingDataSource and AbstractRoutingDataSource, we can introduce delegation support for those methods, invoking the corresponding methods on the target DataSource. This makes it available on all of Spring's common DataSource adapters and proxies - usually without special decoration but at least allowing the same degree of access as on the target DataSource itself.

This goes along with #31506.

@jhoeller jhoeller added in: data Issues in data modules (jdbc, orm, oxm, tx) type: enhancement A general enhancement labels Dec 8, 2023
@jhoeller jhoeller added this to the 6.1.2 milestone Dec 8, 2023
@jhoeller jhoeller self-assigned this Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: data Issues in data modules (jdbc, orm, oxm, tx) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant