Anton
|
Posted: 04/06/2004, 1:48 AM |
|
I have a small system table detailing the relationships between all other tables. I wish to cash this data (I will place it in a session object) and be able to enumerate it upon demand.
What is the best and quickest way of converting a <JDBCConnection>.getRows(<SQL>) into a HashTable I can enumerate?
It appears as if the source of the getRows() is a resultset which I can not access directly.
Anton
|
|
|
ignat
Posts: 55
|
Posted: 04/06/2004, 1:59 AM |
|
Anton,
Yes, getRows returns Enumeration. And to be able to enumerate the result many times you need to convert it into some Collection first.
Collections.list(getRows()) from JDK 1.4 will do the trick.
Regards,
Ignat.
|
|
|
Anton
|
Posted: 04/06/2004, 2:55 AM |
|
Thanks
Anton
|
|
|
|