Add new KiwiJdbc utility to return optionally stripped string, or null if blank #1049
Labels
new feature
A new feature such as a new class, method, package, group of classes, etc.
Milestone
Add a new method in
KiwiJdbc
to return null if a string obtained from calling ResultSet#getString is blank (i.e. null, empty string, or whitespace-only). If the string is not blank, then use anenum
argument to decide whether to strip any leading or trailing whitespace from the original string.Signature:
New enum class to describe whitespace handling
Create a simple
enum
that describes whether or not to strip leading and trailing whitespace.I am not wed to
TrimStrategy
as the name. Since I could not think of a decent name, I asked ChatGPT and here is what it came up with:Pretty good names!
This method can delegate to the new methods created in #1047 or #1048.
The text was updated successfully, but these errors were encountered: