CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Java

 Cache of DbRow vectors

Print topic Send  topic

Author Message
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.
View profile  Send private message
Anton
Posted: 04/06/2004, 2:55 AM

Thanks

Anton

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.