wood burning stoves 2.0*
The moose likes JDBC 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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Cache result set" Watch "Cache result set" New topic
Author

Cache result set

Hamzah khammash
Greenhorn

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
Marshal

Joined: May 26, 2003
Posts: 30762
    
156

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?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
jQuery in Action, 2nd edition
 
subject: Cache result set