Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to implement booking action

 
HiBob Chu
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As we know , after valid booking action , the db.db should be modified (for example the field of available sites should be modified), but the assignment don't allow us to modify db.db file as follow quote:
*************************************************
The suncertify/db directory in this distribution also contains your database file, "db.db". You may not modify this file, but you may move it if you wish.
*************************************************
So, the first question is how booking action deal with the db.db file.
Further more, the another question is what the booking action should be at all? Sould it includes user log in ? Should it save user information?
Wellcome SCJDs give me some advise!
 
Rama Ituarte
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is what I did. I made a several copies of the original db.db file, so I could test with. The original is in the jar file that they give you anyways.
Sould it includes user log in ? Should it save user information?

You don't need to.
Rama
 
Mag Hoehme
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello HiBob,
I understood the line which you have quoted in the following way:
On submission, you must include a copy of the original db.db file.
For coding and testing purposes, you use another copy of the db.db file.
"Moving" the db.db file I understood as placing the file into another directory.
Hope this helps.
 
HiBob Chu
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank above two frinds!
 
Ashik Uzzaman
Ranch Hand
Posts: 2373
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I provided booking placement or cancellation facilities through two buttons in user interface as well as from menu bar.
 
HiBob Chu
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ashik:
I give user the chance to cancel a booking action by poping up a YES_NO dialog after the
booking button be pressed.
 
Juan Ec
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Same did i. I present a dialog with information on the requested order and the chance to cancel it. I also refresh the row in the table after this (even when the order is canceled).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic