MF Tang

Greenhorn
+ Follow
since Nov 03, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by MF Tang

Thanks to all who have helped. As you can see I have posted < 10 messages, but I have read hundreds message. I will recommend javaRanch to anyone interested in Sun Certification, this is really a wonderful forum!

It took me 2 years (most of the time spent procrastinating). So just to encourage those who are still "in progress" struggling with a nicer GUI design, whether to use one more pattern or you suspect that there is one this very special case in your locking mechanism that it might fail, I would encourage you not to think too deep... it is rather endness actually.

I was still in doubt my locking mechanism did not fulfill one of the requirements before I uploaded. It was generally working and I wrote a fair amount of test code and run them successfully. However I was still doubtful. Due the expiry date of my exam vouchers and my oncoming work committements, I submitted the assignment anyway. Thinking that I might just get the 44/80 for locking.

Gotten the results today and found that I was unduly worried:
General Con: 100 88
Documentation: 70 66
OOD: 30 30
GUI: 40 37
Locking: 80 80
Data Store: 40 40
Network Server: 40 40

Total: 400 371

The moral of the story is that no point taking infinite amount of time to do a 100% perfect assignment and always only in progress. You have to upload to pass.

Thanks all again

One more thing use RMI for server it's easier.
19 years ago
Yan,
how about this workaround solution:
throw the RecordNotFoundException at the end of the unlock method, ie AFTER you have done the unlocking ...

Just to fulfill the specification

How, what do the others think?
[ November 27, 2004: Message edited by: MF Tang ]
Looking from another point of view,

It must allow the user to search the data for all records, or for records where the name and/or location fields exactly match values specified by the user



is only a specific case (subset) of the

A non-null value in criteria[n] matches any field value that begins with criteria[n]. (For example, "Fred" matches "Fred" or "Freddy".)



so retrieve all the records starting with "Fred" will include the records that matches exactly with "Fred". So the exactly match requirement is still fulfilled.

Finally to have

A data access system that provides record locking and a flexible search mechanism.



I think providing the "starting with" search in the GUI is the most suitable.

Agree?

[Andrew: Changed all [CODE] tags to [QUOTE] tags]
[ November 26, 2004: Message edited by: Andrew Monkhouse ]
No problem generating the descriptions for attributes, methods, constructors and classes into Java doc, but where do I put in the description for a Package to be included in the Javadoc? Specificately the overview-summary.html. The package description is always blank.

Don't forget to add a GUI to configure the properties
It's a MUST stated in the requirement. That took me quite some time.

MF Tang
SCJP, SCJD (in progress)
Great!

How long did it take you?


MF Tang
SCJP
19 years ago