This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes a shot at the design Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "a shot at the design" Watch "a shot at the design" New topic
Author

a shot at the design

subu ananthram
Ranch Hand

Joined: May 16, 2004
Posts: 102
Did not give design much of a thought and started coding last weekTypical code monkey
Now when I have some part implemented I thought I'd review what I was doing.

Data.java implementons the interface provided by sun.
Data.java is a singleton and delegates to a helper .
This helper will talk to a factory and ask for the database instance.
so soemthing like getDB("flatfile")
now it will get he correct type now flat file later mbe an rdbms.
I have a metadata parser which is static in my Data.java that will parse everything and give me
Thats all I have so far..
More during teh weekend
Tell me what you guys think
Regards
subu
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
I think it would be a good idea for you to browse this forum for a while. Several people have in the past proposed designs (in much more detail) and have received very good feedback.


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: a shot at the design
 
Similar Threads
non-networked mode and locking
NX: used RMI & Local same Time in local Side
Design issues
Is it possible to enhance this code further?
NX: UrlyBird database design question