File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

a shot at the design

 
subu ananthram
Ranch Hand
Posts: 102
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7729
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic