• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

DATABASE OBJECT-- URGENT URGENT  RSS feed

 
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
 
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
 
Desperado
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
Boost this thread!