TrainBeaser for iPhone
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Developer Certification (SCJD/OCMJD)
Reply Bookmark ""booking" question" Watch ""booking" question" New topic
Author

"booking" question

J Hartley
Ranch Hand

Joined: Mar 29, 2001
Posts: 52
Hi,
ok, is my design right..
1.when the user wants to book a seat, a booking dialog pops up
2.the dialog shows the flight number and the amount of seats left
3. if the user clicks "book" the record is locked and modified
4. unlock
does the above sound ok?
My concern is, what if someone deletes the record and puts in a new record after step 2 and before step 3....the new may have the same record number as the old...therefore the wrong flight would be booked urghh!!
cheers
joe
Trevor Dunn
Ranch Hand

Joined: Jun 13, 2001
Posts: 84
I do not think you have to worry about it. The assignment does not ask you to implement delete.
Also, somebody can correct me if I am wrong, but if you do delete a record it is only marked as deleted and not actually deleted from the db. As a result the flight numbers do not change, so you are safe from that scenario anyway
Trevor
 
IntelliJ Java IDE
 
subject: "booking" question
 
Threads others viewed
Client Design, Please comment !!
Booking method in Facade / GUI.
doBooking ???
Booking Seats
booking update -> refresh ALL or current....
IntelliJ Java IDE