File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes B&S: booking a contractor. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "B&S: booking a contractor." Watch "B&S: booking a contractor." New topic

B&S: booking a contractor.

Javier Corral

Joined: May 23, 2007
Posts: 24

I have a doubt about booking a contractor.

I thought that when a contractor is locked I must change the owner field of the corresponding record,
and when the contractor is unlocked I must change the owner field to all blanks.

The problem is that I thought that the owner field represents the cookie that identifies the client locking the record. But the assignment says that my application does not interact with these numbers, rather it simply records them.

Also, my assignment says that the size field is the number of workers "available when this record is booked". �does it mean that the size value must decrease every time a contractor is booked?.

I'm confused with this.
Thanks for advanced.
Mark Ebeling
Ranch Hand

Joined: Jul 06, 2007
Posts: 38
The locking and booking operations are seperate. The locking mechanism uses a cookie that you need to create upon a lock, and needs to be returned by the client upon unlock.

The booking of a contractor just assigns the Customer ID to the record. The client will provide the contractor ID. There is no unbooking logic required within my assignment (B&S 2.2.2). Some people have decided to provide it and some not. That is up to you.

I have also not provided any decrementing logic to for the number of contractor workers since any business logic we were to create may be incorrect( who knows how many workers are needed for a job). So I just book the entire record.

Hopefully that helps.

GREAT DAY TO BE ALIVE - Beats the alternative!<br />
SCJP 5.0
I agree. Here's the link:
subject: B&S: booking a contractor.
It's not a secret anymore!