• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Passed SCJD with 390 / 400 (97,5%)

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
This is one of the better news I receive last time

The maximum number of points is 400, to pass you need a score of 320. Section Summary: Section Max Actual
General Con: 100 90
Documentation: 70 70
OOD: 30 30
GUI: 40 40
Locking: 80 80
Data Store: 40 40
Network Server: 40 40
Total: 400 390

Thanks All of YOU on this forum, for answering questions
And good luck - who wait for results !!

Best regards
Ales Moukhine
SCJP, SCJD
 
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Congratulations Ales,

Could you please look at this issue:

It is indicated in the assignment (UrlyBird) :
"They take bookings only within 48 hours of the start of room occupancy"

It also describes the field owner as follows:
"If this field is all blanks, the record is available for sale"

It describes the date field as follows:
"Date available : The single night to which this record relates, format is yyyy/mm/dd."


1- What do you provide as parameters when booking the selected record?

I will implement the booking method as follows (Thanks to Edwin Advice):

-On a create operation, I will provide all values including the customer

-The room can be booked if the owner is not empty regardless of what the date (available date) is. If the date is 10/10/2005 (one year ago) and the owner is not empty then the room can not be booked, what the user should do is to unbook the room to reset the owner into blanks or reaffect it to an other customer, the unbook reset the owner regardless of the date value.

in other words :

The booking request will be accepted if (date is today and owner is empty)
Or (date is tomorrow and owner is empty) or (date is after tomorrow and owner is empty).

2- Will this fit with the exam spec?

3-If date is after today +48 hours and the owner is empty, will the room be ready for booking?

Best Regards
 
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Congratulations. Almost perfect. Good job.

-I'm kind of particular about the Documentation section. (I hate documenting). Please any words on Documenting? How did you deliver your User documentation? and can you please post a sample of your Design Choices file?
Thanks. (hope i'm not asking for too much).
 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Wow this is the first time I have seen 40/40 for the GUI.
Could you please describe your client GUI and server GUI?
 
Ales Moukhine
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
Thanks for congratulations!!
First, few choices:
- Three-layer architecture (Model (Data) layer, Service (Business) layer, View (User interface)
- Business layer placed at server side
- Separate packages for Client and Server UI
- Provide Common package with common components and utilities
- Provide common UI components: AbstractConfigWindow, ClientMenu,
ConfigParamsValidator, StatusBar, Utils
- Provide 3 configuration windows: for server, client alone, client remote
- For server configuration window is main window, after pressing "start" button is disabled.
- One main window for clients, wich has separate dialog for search and booking
- Main window has menu, status bar with info about how many records has been readed, buttons for operations (get all, search, booking, exit) and checkbox "show only with 48h rule" wich is enabled by default.


Few words about documenting,
- JavaDoc
- Comments in code for all methods, and almost all class attributes, some time coments in code
- User help inside application, called from menu Help->help. Writed as simple html file
- design choices (only 8kb of text) has this structure:
1. General choices.
1.1. Design Patterns used.
2.Model layer.
2.1. Lock Manager.
2.2. DB functionality.
3.Service layer.
4. View layer.
4.1. Common Components.
4.2. Client View.
4.3. Server View.
5. Exception Handling.

I thing this information will be helpfull for You

Regards
Ales'
 
Ales Moukhine
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Mike.

Originally posted by Mike Tilling:

1- What do you provide as parameters when booking the selected record?

I will implement the booking method as follows (Thanks to Edwin Advice):

-On a create operation, I will provide all values including the customer

-The room can be booked if the owner is not empty regardless of what the date (available date) is. If the date is 10/10/2005 (one year ago) and the owner is not empty then the room can not be booked, what the user should do is to unbook the room to reset the owner into blanks or reaffect it to an other customer, the unbook reset the owner regardless of the date value.

in other words :

The booking request will be accepted if (date is today and owner is empty)
Or (date is tomorrow and owner is empty) or (date is after tomorrow and owner is empty).


As a parametr to my business code I provide 'customer code' only.
I did validation only on UI, booking request will be accepted if customer code will not be empty.
But if i try to book a record which is already booked, i throw an exception from Model layer.


3-If date is after today +48 hours and the owner is empty, will the room be ready for booking?



Yes, in my implementation you can book this record.

Regards.
Ales'
[ October 11, 2006: Message edited by: Ales Moukhine ]
 
Mike Tilling
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Ales,

does your assignment have this spec

"They take bookings only within 48 hours of the start of room occupancy" ?


Is the date field described as follows
"Date available : The single night to which this record relates, format is yyyy/mm/dd" ?

I see that you did not take date in consideration, if the owner is empty than you book the record, what if the date is not within the next 48 hours?

-when you book the record, you only provide the custoner ID, what about the new value for the date field, do you keep the same date for ever?

Regards
 
Ranch Hand
Posts: 2023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Congratulations!
 
Ales Moukhine
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Mike,

Originally posted by Mike Tilling:

does your assignment have this spec

"They take bookings only within 48 hours of the start of room occupancy" ?


Yes, it has.


Is the date field described as follows
"Date available : The single night to which this record relates, format is yyyy/mm/dd" ?


Exactly.


I see that you did not take date in consideration, if the owner is empty than you book the record, what if the date is not within the next 48 hours?


I also book the record if the date is not within the next 48 hours.
User on UI can choose wich records He/She what to see.


-when you book the record, you only provide the custoner ID, what about the new value for the date field, do you keep the same date for ever?


Yes, in DB I has each record for each day, so I only change the customer field when book.

Regards.
Ales'
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Congratulations Alles

How did you recover the InterruptedException, do we have to?

Regards
 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Congratulations, Ales.
Juat a quick question, can you tell me long you choices.txt is? How many pages or how many lines? People say it should not be long. How long is 'not long'.

Thanks a lot.
 
reply
    Bookmark Topic Watch Topic
  • New Topic