This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Disconnected Data

 
Michael Hildner
Ranch Hand
Posts: 297
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Newbie question, been a few years since I've touched Java. Does Java have any support for disconnected data? Like you could grab tables, say from a web service and store in an in-memory database, make changes and persist those changes back to the db?

Really looking for the equivilent of .NET's DataSet class.

Thanks,
Mike
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the JDBC forum...
 
Michael Hildner
Ranch Hand
Posts: 297
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry about that, actually I wasn't sure where to post. If there is such an object in Java, it doesn't necessarily have to do with accessing a database, that is, you can build your own in-memory db in code, or read from a text/xml file/web service/whatever, not using drivers. That's why I posted in the beginner area.

Apologies,
Mike
 
Shailesh Chandra
Ranch Hand
Posts: 1082
Java Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes there is supports for disconnected data.

Try searching CacheRowSet implementation on sun or google.

optionally you may search for rowset.jar
 
Michael Hildner
Ranch Hand
Posts: 297
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Shailesh,

Thanks for the reply, just needed to know what to look for, appreciate it.

Regards,
Mike
 
Braj Prasad
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Use the following link to download the generic reference implementation from the Sun Developer NetworkJDBC RowSet Implementation

Add it to your classpath, and you should be ready to use the Cached Row Sets.

Braj.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!