JdbcEntityDaoSupport 类添加 update 方法,方便使用。

This commit is contained in:
2022-12-07 18:29:29 +08:00
parent e916d067f3
commit cb07c0befd
5 changed files with 26 additions and 22 deletions

View File

@@ -56,6 +56,10 @@ public abstract class JdbcEntityDaoSupport<T extends Entity<ID>, ID extends Seri
return Boolean.TRUE.equals(isExists);
}
protected final int update(String sql, SqlParameterSource parameterSource) {
return this.jdbc.update(sql, parameterSource);
}
protected abstract T mapRow(ResultSet rs) throws SQLException;
protected void setRowMapper(@Nonnull RowMapper<T> rowMapper) {