wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "B&S: booking a contractor." Watch "B&S: booking a contractor." New topic
Author

B&S: booking a contractor.

Javier Corral
Greenhorn

Joined: May 23, 2007
Posts: 24
Hi,

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
Javier,
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
 
jQuery in Action, 2nd edition
 
subject: B&S: booking a contractor.
 
Similar Threads
B&S 2.3.2 database schema
NX:Some question about booking
What's this meaning?
recNo in Bodgitt and Scarper
An issue about record booking