1. 删除 DbRecord;2. plusone-commons 删除 SQL Builder。

This commit is contained in:
2024-12-29 23:16:08 +08:00
parent ce86d97e38
commit feb421cfa0
6 changed files with 27 additions and 242 deletions

View File

@@ -48,10 +48,6 @@ public interface RowMapper<T> {
return result;
};
/** 每一行数据转换为 {@link DbRecord} */
public static final RowMapper<DbRecord> RECORD_MAPPER =
(rs, rowNumber) -> new DbRecord(HASH_MAP_MAPPER.mapRow(rs, rowNumber));
/** 默认实现的将 {@link ResultSet} 转换为 Java Bean 的 {@link RowMapper}。 */
public static <T> RowMapper<T> beanRowMapper(Class<T> beanType) throws SQLException {
return DefaultBeanRowMapper.of(beanType);