1
我有以下Java 7代码来创建CachedRowSet
。来自CachedRowSet的连接
CachedRowSet crs = RowSetProvider.newFactory().createCachedRowSet();
有没有办法从CachedRowSet
对象中获取Connection对象?在调用CachedRowSet
上的acceptChanges()
之前,我想在连接对象上设置autoCommit
为false,因为调用acceptChanges()
时出现以下异常。
有上CachedRowSet
一个COMMIT_ON_ACCEPT_CHANGES
领域,但它已过时。
谢谢,它的工作。 – user2953113 2014-11-24 13:29:47