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

Add methods to KiwiJdbc to convert java.sql.Date to LocalDate #1052

Merged
merged 2 commits into from
Oct 7, 2023

Conversation

sleberknight
Copy link
Member

Add two localDateOrNullFromDate methods, one that accepts a ResultSet and colum name, and one that accepts a java.sql.Date. They are both annotated with the Checker Nullable annotation to indicate null can be returned, and also that the java.sql.Date argument can be null as well.

Closes #1044

Add two localDateOrNullFromDate methods, one that accepts a
ResultSet and colum name, and one that accepts a java.sql.Date.
They are both annotated with the Checker Nullable annotation to
indicate null can be returned, and also that the java.sql.Date
argument can be null as well.

Closes #1044
@sleberknight
Copy link
Member Author

I'm wondering whether the names should change the location of "OrNull" so they are at the end, e.g. localDateFromDateOrNull instead of localDateOrNullFromDate

@sleberknight sleberknight marked this pull request as ready for review October 7, 2023 18:33
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@dsingley dsingley merged commit 65aa3f7 into master Oct 7, 2023
6 checks passed
@dsingley dsingley deleted the 1044-new-LocalDate-conversion-methods-in-KiwiJdbc branch October 7, 2023 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add new KiwiJdbc utilities to convert from java.sql.Date to LocalDate
4 participants