• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Where did you store your reserved flight data?

 
Sara
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Could anyone tell me that where you stored your reserved flight data when you worked on FBN system? I am thinking about run_time collection DataInfo class not flat file to keep the reserved flight information. What did you do for it?
Thank you very much for your any input.
Sara
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't need to save it, just reduce the db.db available seats for that flight.
Mark
 
Sara
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you, Mark for reply.
I am thinking about the reservation and cancel. If I booked on different flights, I give each one special id, and I want to delete one of the flight I booked, then the reserved data need to be stored somewhere, so if the client wants to delete the reserved flight, the system will know the flight info regarding to the id. Have anyone of you designed has the same functions? What did you do for the reserved data?
Thank you very much for your any input.
Sara
 
Sara
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After I looked at the Data class carefully, I can store the data by using the source code that supplied by Sun. Thank you for your help.
Have a great day.
Sara
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sara, you are making the assignmetn more complex than it needs to be. There does not need to be a way to cancel a reservation.
All that you need is the GUI to select a flight, enter number of seats to book, click a button, and it books the seats, which takes the seats out of the available seats left on that flight. That is all you need to put inot the assignment, anything else is above the requirements that they want.
From the exams points of view, and in the real world, going beyond the requirements is costly.
First hand experience.
Mark
 
Sara
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mark,
Thank you very much for your input. It's very valuable to me. I am going to think carefully again.
Sara
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic