File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes DATABASE  OBJECT--  URGENT URGENT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "DATABASE  OBJECT--  URGENT URGENT" Watch "DATABASE  OBJECT--  URGENT URGENT" New topic
Author

DATABASE OBJECT-- URGENT URGENT

Peter Bauer
Greenhorn

Joined: Feb 01, 2007
Posts: 4
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

Joined: Jun 03, 2000
Posts: 5040
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).]


Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
Peter Bauer
Greenhorn

Joined: Feb 01, 2007
Posts: 4
Thank u verymuch

Peter
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
Please try to avoid the use of the word "urgent" in your Subject(s).
This is an easy-going, friendly (and FREE) place
Thanks.

Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DATABASE OBJECT-- URGENT URGENT
 
Similar Threads
Urgent
URGENT......
urgent
Needs ur help - - Urgent !
DATABASE OBJECT__ URGENT URGENT