aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Re-design of data-handling system Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Re-design of data-handling system" Watch "Re-design of data-handling system" New topic
Author

Re-design of data-handling system

Anton Golovin
Ranch Hand

Joined: Jul 02, 2004
Posts: 476
Eheh, here I go again. It will be the third time I redesign things. And the problem is - I try to make things more complex than they should be to pass the exam.

My new design makes use of pre-defined java exceptions; I do not define any of my own. I also have only four classes for handing io, caching and locking. Here they are:

Schema - defines and validates data-file schema.
IOStream - provides reading, writing, conversion methods for records
Cache - contains cache of active and deleted records.
Locker - contains locked records

I am still thinking of abolishing both Cache and Locker and going with static Maps in my Data class.

What do you guys think? Is it good enough? Could something be improved? I mean, for me writing the data-management system is the difficult part. I am doing it the third time: both two first times were too complex. Overcomplicating things is the bane of this assignment.


Anton Golovin (anton.golovin@gmail.com) SCJP, SCJD, SCBCD, SCWCD, OCEJWSD, SCEA/OCMJEA [JEE certs from Sun/Oracle]
Robert Konigsberg
Ranch Hand

Joined: Jun 23, 2004
Posts: 172
Originally posted by Anton Golovin:

Schema - defines and validates data-file schema.
IOStream - provides reading, writing, conversion methods for records
Cache - contains cache of active and deleted records.
Locker - contains locked records

I am still thinking of abolishing both Cache and Locker and going with static Maps in my Data class.

... Overcomplicating things is the bane of this assignment.


Yeah, be careful with overcomplicating!

1. Why do you have a cache of objects?
2. Why would you make it (and Locker) static maps, as opposed to instance variables?


SCJP 1.4 (91%)<br />SCJD 1.4 (376/400, 94%)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Re-design of data-handling system