Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / March 2004

Tip: Looking for answers? Try searching our database.

Retreving data from a resultset

Thread view: 
tony - 15 Mar 2004 15:47 GMT
Hi

I want to retrieve all the data from a resultset and place it into a
file, are there any core library methods associated with this action
or do I have to scroll through the resultset using getXXX methods and
handle writing to a file in my own class?

Any thoughts on or around this issue would be very much appreciated

Tony
RC - 16 Mar 2004 14:29 GMT
> I want to retrieve all the data from a resultset and place it into a
> file, are there any core library methods associated with this action

I don't think so.

> or do I have to scroll through the resultset using getXXX methods and
> handle writing to a file in my own class?

Yes
Wendy S - 16 Mar 2004 19:46 GMT
> I want to retrieve all the data from a resultset and place it into a
> file, are there any core library methods associated with this action
> or do I have to scroll through the resultset using getXXX methods and
> handle writing to a file in my own class?
> Any thoughts on or around this issue would be very much appreciated

They are not part of the core, but a couple of Jakarta Commons BeanUtils
classes look interesting:  ResultSetDynaClass and RowSetDynaClass.  If you
already have a business object and a data access class that knows how to
write that object to the database, then one of those classes plus
BeanUtils.copyProperties might be of use.

Signature

Wendy in Chandler, AZ



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.