File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Cache result set Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Cache result set" Watch "Cache result set" New topic

Cache result set

Hamzah khammash

Joined: Jan 05, 2012
Posts: 23

Hi Guys ,,
I want someone give me a hint about cashing the whole returned result set row by row to a map where is the key is the row index and value
is the whole row?
Help please
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32844

I updated the subject from "cash" to "Cache" so it gets more attention (the English word is cache.)

Java has a CachedRowSet object. You can go to a particular row with it. Why do you need a map instead?

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Cache result set
It's not a secret anymore!