#1283: JdbcUtils.kt

projectforge-business/src/main/kotlin/org/projectforge/framework/persistence/database/JdbcUtils.kt JDBC Utility Functions, projectforge-business/src/main/kotlin/org/projectforge/framework/persistence/database/JdbcUtils.kt 142 lines · 45 code · 85 comments · 12 blank
Utility object providing type-safe extraction methods from JDBC ResultSet. Handles SQL NULL detection via rs.wasNull() and provides getters for String, Long, BigDecimal, Date, Timestamp, LocalDate, Boolean, and byte[] types. Includes a debugColumnResult() helper for diagnostic logging of result set columns.

Key Methods

MethodDescription
getString(rs, name)Returns String or null if SQL NULL
getLong(rs, name)Returns Long or null if SQL NULL
getBigDecimal(rs, name)Returns BigDecimal or null
debugColumnResult(rs, ...names)Debug string showing column values and null status

Git History

868d6abb7 2025 -> 2026
63081666f Source file headers: 2024-> 2025.
313bed1ec Merge remote-tracking branch 'origin/master' into mgc-remove
12610fee2 Migration stuff in progress... (all tests of all packages: OK).
567ca70cd Migration in progress...