• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DATABASE OBJECT-- URGENT URGENT

 
Peter Bauer
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Folks,
How can we make each record that we are retriving from a database as OBJECT. and add that record to other OBJECT like vector. can any body give me a clue how to write the code for this please.and also is there any ready made example available in any site.
Thanks
Peter
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I developed a java bean class for a JSP which does exactly
what you asked. It makes a DB query, gets the RecordSet.
Creates one dbObject per Record. Adds it to a Vector.
Returns the Vector.
You can take this bean, and write your application (main)
method, and verify the results in the Vector.
Not everything here is my own and I forgot exactly where I got the stuff from maybe jGuru/IBM/Sun/JRun site or something else.
Help yourself.
Regds.
- satya

[This message has been edited by Madhav Lakkapragada (edited September 28, 2000).]
 
Peter Bauer
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank u verymuch

Peter
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please try to avoid the use of the word "urgent" in your Subject(s).
This is an easy-going, friendly (and FREE) place
Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic