• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

DATABASE OBJECT-- URGENT URGENT

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank u verymuch

Peter
 
Desperado
Posts: 3226
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic