posted 20 years ago
Hi friends '
My bookSeats method has the flight number and no of seats to be booked as parameter.
First of all i use find of Data class to find a record for this flight number.From the record i get hold of record number for the record.
With this record number as a parameter i call lock(int recNum),then getRecord(int recNum)for retriving the record,after that a check for available seats is run from which no. of seats to be booked is subtracted,then unlock(int recNum) is called.
Is this flow appropriate.
VikasSood