com.sun.rowset.CachedRowSetImpl代替方案

Classes in the sun.* or com.sun.* packages are considered implementation details, and are not part of the Java API.

They can cause problems when moving to new versions of Java because there is no backwards compatibility guarantee. Similarly, they can cause problems when moving to a different Java vendor, such as OpenJDK.

Such classes are almost always wrapped by Java API classes that should be used instead.

sun.*或com.sun.*包中的类被视为实现细节,而不是Java API的一部分。

当迁移到新版本的Java时,它们可能会导致问题,因为没有向后兼容性保证。类似地,当迁移到其他Java供应商(如OpenJDK)时,它们可能会导致问题。

此类类几乎总是由应该使用的JavaAPI类包装。
CachedRowSetImpl 不应该 使用

CachedRowSet cachedRowSet = new CachedRowSetImpl();

应该使用

CachedRowSet cachedRowSet = RowSetProvider.newFactory().createCachedRowSet();
cachedRowSet.populate(resultSet);
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值