Skip to main content

warning: com.sun.rowset.CachedRowSetImpl is Sun proprietary API and may be

3 replies [Last post]
fuerte
Offline
Joined: 2004-11-22
Points: 0

warning: com.sun.rowset.CachedRowSetImpl is Sun proprietary API and may be removed in a future release

I downloaded the latest jdk6 b98 and now I get the above error whenever I mention CachedRowSetImpl. I have a few questions:

1) Why CachedRowSetImpl is removed from Java?
2) Is there any other way to use CachedRowSet?
3) How can I disable the warning in NetBeans 5.5?
4) Is there an alternative to CachedRowSetImpl? Should I use DataSet instead?

"A DataSet may operate in a connected or disconnected mode. When used in a connected mode, the DataSet functions in a manner similar to ResultSet. A disconnected DataSet functions in a manner similar to a CachedRowSet."

5) Does DataSet work with all JDBC drivers, or does the support for DataSet have to be built into the driver?
6) Does DataSet work with Derby? Last time I tried it didn't.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
diana_colombia
Offline
Joined: 2007-10-26
Points: 0

I have the same problem:

warning: com.sun.rowset.CachedRowSetImpl is Sun proprietary API and may be removed in a future release

, please anybody help!

Message was edited by: diana_colombia

lcallero
Offline
Joined: 2008-07-11
Points: 0

Hi!
Did you find the solution? If you did, please post it.

rpollack
Offline
Joined: 2007-06-12
Points: 0

If you're confident that this class is going to be around for a while (it is still in JDK 1.6, version 11) and you just want to avoid the warning message, you can get it with Class.forName. An example can be found at http://bluesterror.livejournal.com/129681.html?thread=141201#t141201.