File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes URLyBird -- Data file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "URLyBird -- Data file" Watch "URLyBird -- Data file" New topic
Author

URLyBird -- Data file

Tony Bouer
Greenhorn

Joined: Mar 06, 2006
Posts: 29
I usually do not receive any response, but still trying ....

Have someone used a class to hold the fields read from data file ? Are you keeping the String[] from DB interface. I'm used to work with J2EE only and it's normal to use a value object like class to hold the structure and after populate with data. Any idea ? Could someone describe de data access class files ?

Tks,
Argus
Jason Moors
Ranch Hand

Joined: Dec 04, 2001
Posts: 188
Hi Tony,

Are you keeping the String[] from DB interface.[

Yes, you must implement the DB interface that is provided, if it helps, I would think of the class as being your data layer which returns a simple ResultSet in the form of a String[].

I would recommend that you keep this layer very generic, and not tied to the fields defined in the assignment, think of it like a JDBC interface.
Have someone used a class to hold the fields read from data file?

Yes, I've created Data Transfer Objects in my business layer, I retrieve the records using the int[] find(String[] criteria) and String[] read(recNo) and pass the objects to the GUI layer.

Jason.
[ March 30, 2006: Message edited by: Jason Moors ]
Tony Bouer
Greenhorn

Joined: Mar 06, 2006
Posts: 29
Thank you very much !

Tony
 
Consider Paul's rocket mass heater.
 
subject: URLyBird -- Data file
 
Similar Threads
Doubt in using bean
Any naming convention for a class
Saving Table Model data
Is there a way to loop until AudioPlayer has stopped?
Why can't I import most projects I download into eclipse?