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 / Databases / January 2004

Tip: Looking for answers? Try searching our database.

Business classes

Thread view: 
dante - 22 Jan 2004 09:05 GMT
I am facing the following issue: use disconnected data in JAVA.
More precisely, I need to:
1) do a SELECT (I can use a java.sql.ResultSet)
2) populate an object (e.g., a Vector) of items representing the DB rows I
selected

The issue is that I need to define a class for each table present in my DB.
That class represents a record of a table in my DB.

I seems to me a quite old-fashioned style of programming. So here I am to
ask you:

Is there a smarter way of doing the same thing?

TIA

Dante
Jan-Hendrik Palic - 22 Jan 2004 15:03 GMT
Hi ..

> I am facing the following issue: use disconnected data in JAVA.
> More precisely, I need to:
[quoted text clipped - 7 lines]
> I seems to me a quite old-fashioned style of programming. So here I am to
> ask you:

I and some of my friends did this by representing a relative DB (MySQL
DB) by an XML-Schema. Then we serialized this xsd with jaxb and we got
Classes related to our DB.

    Regards
            Jan


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.