• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

How to implement booking action

 
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank above two frinds!
 
Ranch Hand
Posts: 2379
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
 
Clowns were never meant to be THAT big! We must destroy it with this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic