Reproduce a ResultSet

Does anyone know a method to cache a ResultSet into memory (probably as java object) so that it can be easly accessed repeatedly without further db calls.Thanks in advance.Daniele.
[215 byte] By [rossifumi80] at [2007-9-26 6:43:14]
# 1
Read each row of the ResultSet and create an object containing its elements. Create a Vector or an ArrayList and add each of those objects to it.
DrClap at 2007-7-1 16:04:01 > top of Java-index,Archived Forums,Java Programming...
# 2
Read this: http://developer.java.sun.com/developer/onlineTraining/Programming/JDCBook/perf4.html
sekavin at 2007-7-1 16:04:01 > top of Java-index,Archived Forums,Java Programming...