aspose file tools*
The moose likes Certification Results and the fly likes NX SCJD: but passed with 155/155 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Certification Results
Bookmark "NX SCJD: but passed with 155/155" Watch "NX SCJD: but passed with 155/155" New topic
Author

NX SCJD: but passed with 155/155

shan chen
Ranch Hand

Joined: Apr 09, 2003
Posts: 70
I just get test result. I took the new version assignment, but the grade was given as the old version. Thanks to all the helps I got from this forum! Follwoing is the detailed comments:

This report shows the total points that could have been awarded in each section and the actual number of points you were awarded. This is provided to give you per-section feedback on your strengths. The maximum possible number of points is 155; the minimum to pass is 124. Section Summary Report: General Considerations: Maximum=58 Deductions=0 Actual=58 Documentation: Maximum=20 Deductions=0 Actual=20 GUI: Maximum=24 Deductions=0 Actual=24 Server: Maximum=53 Deductions=0 Actual=53 Total: Maximum=155 Deductions=0 Certification Score=155

shan
Lanuk Jajab
Greenhorn

Joined: Jul 03, 2003
Posts: 19
Great job! a perfect score!
Billy Tsai
Ranch Hand

Joined: May 23, 2003
Posts: 1304
which new assignment did you do?
do you see the SCJD result directly after you login to the certmanager site?
Max Habibi
town drunk
( and author)
Sheriff

Joined: Jun 27, 2002
Posts: 4118
Nice Job! I'm moving this to the Cert results forum, so everyone can appreciate it.

M


Java Regular Expressions
Francis Siu
Ranch Hand

Joined: Jan 04, 2003
Posts: 867
Wowwwwwwww..
Perfect


Francis Siu
SCJP, MCDBA
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

Congrats Shan. Great job.
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
shan chen
Ranch Hand

Joined: Apr 09, 2003
Posts: 70
Hi, Billy Tsai,
which new assignment did you do?

My assignment is URLyBird, hotel room booking project.

do you see the SCJD result directly after you login to the certmanager site?

Yes.
shan
Ravi Arikere
Greenhorn

Joined: Jun 25, 2003
Posts: 4
Congratulations!!!
George Fung
Ranch Hand

Joined: Jun 12, 2003
Posts: 98
Congratulation.
Could you please share your desing pattern here? Do you use conncetion factory and lock manager?


SCJP, SCJD, SCWCD, SCBCD, SCEA, SCJP6
To be obtained: SCEA 5
shan chen
Ranch Hand

Joined: Apr 09, 2003
Posts: 70
Hi, Grorge,
Could you please share your desing pattern here?

I would like to share my experience. In choices.txt, I indicated that I used three design patterns:
1. MVC
The pirpose is to separate the data display from the actual data representation. The view is implemented by the main window in ClientApplication.java, the controller is implemented by GUIController.java, the data model is implemented by String array, and the data access is implemented by DBMain.
The ClientApplication has a reference to GUIController, and GUIController has a reference to DBMain. Briefly, the structure is :
main window --> controller --> data model

2. Adapter
Adapter pattern is used to handle the problem that DBMain can not be bounded to the RMI registry.(There are many disscussions about this issue and my solution is just one of them).
I used an adapter RemoteDBAdapter to wrap DBMain. RemoteDBAdapter implementes RemoteDBMain. RemoteDBMain extends Remote. RemoteDBMain has all methods defined in DBMain , except each method throws RemoteException. In this way, RemoteDBAdapter can be bounded to RMI registry as the remote object.
At the client side, I used ClientDBAdapter as an adapter to wrap RemoteDBMain to DBMain. Thus, the data access class is always DBMain in both modes.
3. Factory
With the help of Adapter pattern, I defined method getDBAccess to create data access object of type DBMain for both network mode and non-network mode.
public static DBMain getDBAccess ( ) throws IOException {
if local mode:
return local data access;
if remote mode:
return remote data access;
}

Do you use conncetion factory and lock manager?

I used connection factory, as I explained in factory pattern.
No, I did not used lock manager.
Hope these are helpful.
shan
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11506
    
  95

Wow. Fantastic score. Congratulations.


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Maksim Golubkow
Greenhorn

Joined: Jun 04, 2003
Posts: 22
Hi shan,
Congratulations, well done.
One question, have you data validation (such as owner id must be 8 digit number) in the methods updateRecord(...) and createRecord(...)?
Regards, Maksim
George Fung
Ranch Hand

Joined: Jun 12, 2003
Posts: 98
Thanks your info. I will follow your design.. Congratulation
shan chen
Ranch Hand

Joined: Apr 09, 2003
Posts: 70
Hi, Andrew,
You gave me many help too. Thanks a lot. Good luck to your test result!

Hi, Maksim,
have you data validation (such as owner id must be 8 digit number) in the methods updateRecord(...) and createRecord(...)?

Yes, I validated owner id to be an 8-digit number BEFORE it is passed as a parameter to any methods. I used WholeNumberField.java which extends JTextField to input owner id when booking a room. WholeNumberField uses PlainDocument to ensure the input is an 8-digit number.
Following are two threads about this topic:
http://www.coderanch.com/t/241875/java-programmer-SCJP/certification/set-maximum-input-length-JTextField
http://www.coderanch.com/t/183397/java-developer-SCJD/certification/NX-maximum-input-length-JTextField

Hope these are helpful.
shan
Damian Ryan
Ranch Hand

Joined: May 09, 2003
Posts: 117
Well done, SCJD!


Always proofread carefully to see if you any words out.
Maksim Golubkow
Greenhorn

Joined: Jun 04, 2003
Posts: 22
Hi shan, thanks for reply, but what i mean is following:

Regards, Maksim
shan chen
Ranch Hand

Joined: Apr 09, 2003
Posts: 70
Hi, Maksim,
Sorry that I have misunderstood your question. In my application, method update in Data.java does not check the parameter. My reason is: only the owner_id field is changed when method update is called to book a room (my JTable is not editable). As the owner id is guarrented to be an 8-digit number with the help of PlainDocument, method update does not have to check it again.
It is good to check data in method update, while in my personal opinion, I prefer to validate data on client side if possible.
Regards.
shan
Maksim Golubkow
Greenhorn

Joined: Jun 04, 2003
Posts: 22
Thanks shan, that helps me.
Regards, Maksim
ChunChhau Liao
Greenhorn

Joined: Aug 13, 2002
Posts: 3
Just perfect!!!
Congratulations

ChunChhau Liao
SCJP 1.4
SCWCD
Tong Chen
Ranch Hand

Joined: Apr 26, 2002
Posts: 1011
Congratulations to you!


Tong Chen (Seattle USA)<br />SCJP,SCWCD,SCDJWS,IBM XML,MCP.NET,MCAD.NET,MCSD.NET
Chin Ho Tan
Greenhorn

Joined: Aug 28, 2003
Posts: 8
Did you cache your records ? Or you just do "search" from the file directly ?
Vlad Rabkin
Ranch Hand

Joined: Jul 07, 2003
Posts: 555
Hi Shan,
Waw: 100%. Congratulations!
Could please help me and answer 3 question:
Question 1
Could please describe you synchronization design (to guarantee data consistency):
1) Do you lock the record to read on the client also:
lock()-read()-lock() to read
lock()- read()-write()-unlock() to update
or
2) you don't lock() to read, but you synchronize all read/write methods in DBMain.
read() to read
lock()- read()-write()-unlock() to update?
Question 2
You said you use Data Model (represented by String[]).
Does it mean that you have a DataModel for each record?
How you class look like 1) or 2)

Could you describe more precisly what you meant?
Question 3
Did you do something do prevent client from been changed in case database structure changes (columns in database would be added, deleted, or replaced)? If so, what have done to prevent changes on clients if it occurs?
Many thanx,
Vlad
[ September 18, 2003: Message edited by: Vlad Rabkin ]
[ September 18, 2003: Message edited by: Vlad Rabkin ]
 
Consider Paul's rocket mass heater.
 
subject: NX SCJD: but passed with 155/155