Copying Java ResultSet

后端 未结 2 1211
隐瞒了意图╮
隐瞒了意图╮ 2020-12-10 16:13

I have a java.sql.ResultSet object that I need to update. However the result set is not updatable. Unfortunately this is a constraint on the particular framewor

2条回答
  •  北荒
    北荒 (楼主)
    2020-12-10 16:30

    Thanks for the responses. In the end I found CachedRowSet which is exactly what I needed. With this I was able to disconnect the ResultSet object and update it.

    What's more, because CachedRowSet implements the ResultSet interface I was still able to pass it to my file generation method which requires an object that implements ResultSet.

提交回复
热议问题