• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Questions about Booking

 
Bisi Adedokun
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When a customer select a record from the JTable and decides to make a booking, what are the info that the customer needs to provide? Does the customer only changes avilable seat or does she/he provides additional info such as:
Name, Flight number, Day and Time? If yes, does a new datafile has to be created to accommodate these new fields? If no, then what is the purpose of the add method in Data class since the only field that may change is the available seat which implies only update/modidy is needed to accomplish that.
Any thoughts on this will be appreciated.
Bisi
 
Bal Sharma
Ranch Hand
Posts: 273
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bisi:
Not sure what really you are trying to do? I think more than one data file means less data integrety. My plan is to change their db.db data file decreasing number of seat. That is it. If availabe seat equlas 0 (zero) no more filght reservation for that particular carrier and sector. Hope I am not confusing you. BK
 
Jane Griscti
Ranch Hand
Posts: 3141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bisi,
Think the customer just has to select the record in the table, click on a 'booking' button or menu item and then enter the number of seats he wants to book.
Your application will need to get the selected record and then update that in the database; nothing new needs to be added.
At least, that's the approach I'm using.
------------------
Jane Griscti
Sun Certified Programmer for the Java� 2 Platform
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Confirmed - the only thing you do is decrease the number of seats. Of course, in a complete system you will also keep track of client details, add flights, &c, but that's outside the scope of the assignment.
Please remember to distinguish between the database and the FBN application. The database is not a special-purpose database for this particular application. You are told explicitly that it is for re-use (at least I was told in my assignment). So there may be facilities you don't actually use; that's fine.
- Peter
 
Bisi Adedokun
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Peter. That is very helpful.
Bisi
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic